|  | @@ -8,6 +8,7 @@ import java.util.HashSet;
 | 
	
		
			
				|  |  |  import java.util.Iterator;
 | 
	
		
			
				|  |  |  import java.util.List;
 | 
	
		
			
				|  |  |  import java.util.Map;
 | 
	
		
			
				|  |  | +import java.util.Objects;
 | 
	
		
			
				|  |  |  import java.util.Set;
 | 
	
		
			
				|  |  |  import java.util.stream.Collectors;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -24,6 +25,7 @@ import com.ym.mec.biz.dal.dto.RouteScaleDto;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.HfMember;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.StudentPaymentOrder;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.StudentPaymentRouteOrder;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.entity.SysConfig;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.SysPaymentConfig;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.enums.FeeTypeEnum;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.enums.PaymentChannelEnum;
 | 
	
	
		
			
				|  | @@ -140,9 +142,22 @@ public class PayServiceImpl implements PayService {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  | -	public Map<String, Object> getPayToPlatformMap(PaymentChannelEnum paymentChannel, String payeeMerNo, BigDecimal amount, BigDecimal balanceAmount, String orderNo, String notifyUrl, String returnUrl,
 | 
	
		
			
				|  |  | +	public Map<String, Object> getPayToPlatformMap(PaymentChannelEnum paymentChannel, BigDecimal amount, BigDecimal balanceAmount, String orderNo, String notifyUrl, String returnUrl,
 | 
	
		
			
				|  |  |  			String orderSubject, String orderBody) throws Exception {
 | 
	
		
			
				|  |  |      	
 | 
	
		
			
				|  |  | +    	SysConfig config = sysConfigDao.findByParamName("platform_collection_organ");
 | 
	
		
			
				|  |  | +        if (Objects.isNull(config)) {
 | 
	
		
			
				|  |  | +            throw new BizException("平台收款账户没有设置[platform_collection_organ]");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    	
 | 
	
		
			
				|  |  | +    	SysPaymentConfig sysPaymentConfig = sysPaymentConfigService.findPaymentConfigByOrganId(Integer.parseInt(config.getParanValue()));
 | 
	
		
			
				|  |  | +    	
 | 
	
		
			
				|  |  | +    	if(sysPaymentConfig == null || StringUtils.isBlank(sysPaymentConfig.getHfMerNo())){
 | 
	
		
			
				|  |  | +    		throw new BizException("分部[{}]没有设置收款账号", config.getParanValue());
 | 
	
		
			
				|  |  | +    	}
 | 
	
		
			
				|  |  | +    	
 | 
	
		
			
				|  |  | +    	String payeeMerNo = sysPaymentConfig.getHfMerNo();
 | 
	
		
			
				|  |  | +    	
 | 
	
		
			
				|  |  |          Map<String, Object> payMap = null;
 | 
	
		
			
				|  |  |          
 | 
	
		
			
				|  |  |      	if (paymentChannel.equals(PaymentChannelEnum.YQPAY)) {
 |