|  | @@ -6,11 +6,14 @@ import com.ym.mec.biz.dal.dao.SysUserCashAccountDao;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.dto.PageInfoOrder;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.dto.StudentPaymentRouteOrderDto;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.StudentPaymentRouteOrder;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.enums.DealStatusEnum;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.enums.GroupType;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.enums.SporadicChargeTypeEnum;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.StudentPaymentOrderQueryInfo;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.StudentPaymentRouteOrderService;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.dal.BaseDAO;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.exception.BizException;
 | 
	
		
			
				|  |  | +import com.ym.mec.common.service.IdGeneratorService;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.service.impl.BaseServiceImpl;
 | 
	
		
			
				|  |  |  import com.ym.mec.util.collection.MapUtil;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
	
		
			
				|  | @@ -29,6 +32,8 @@ public class StudentPaymentRouteOrderServiceImpl extends BaseServiceImpl<Long, S
 | 
	
		
			
				|  |  |      private SysUserCashAccountDao sysUserCashAccountDao;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private StudentPaymentOrderDao studentPaymentOrderDao;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private IdGeneratorService idGeneratorService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public BaseDAO<Long, StudentPaymentRouteOrder> getDAO() {
 | 
	
	
		
			
				|  | @@ -74,11 +79,17 @@ public class StudentPaymentRouteOrderServiceImpl extends BaseServiceImpl<Long, S
 | 
	
		
			
				|  |  |      @Transactional(rollbackFor = Exception.class)
 | 
	
		
			
				|  |  |      public StudentPaymentRouteOrderDto addOutOrder(StudentPaymentRouteOrderDto studentPaymentRouteOrderDto) {
 | 
	
		
			
				|  |  |          Date nowDate = new Date();
 | 
	
		
			
				|  |  | +        String orderNo = idGeneratorService.generatorId("payment") + "";
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        studentPaymentRouteOrderDto.setOrderNo(orderNo);
 | 
	
		
			
				|  |  | +        studentPaymentRouteOrderDto.setGroupType(GroupType.OUTORDER);
 | 
	
		
			
				|  |  | +        studentPaymentRouteOrderDto.setExpectAmount(studentPaymentRouteOrderDto.getActualAmount());
 | 
	
		
			
				|  |  | +        studentPaymentRouteOrderDto.setStatus(DealStatusEnum.SUCCESS);
 | 
	
		
			
				|  |  |          studentPaymentRouteOrderDto.setCreateTime(nowDate);
 | 
	
		
			
				|  |  |          studentPaymentRouteOrderDto.setUpdateTime(nowDate);
 | 
	
		
			
				|  |  |          studentPaymentOrderDao.insert(studentPaymentRouteOrderDto);
 | 
	
		
			
				|  |  |          StudentPaymentRouteOrder studentPaymentRouteOrder = new StudentPaymentRouteOrder();
 | 
	
		
			
				|  |  | -        studentPaymentRouteOrder.setOrderNo(studentPaymentRouteOrderDto.getOrderNo());
 | 
	
		
			
				|  |  | +        studentPaymentRouteOrder.setOrderNo(orderNo);
 | 
	
		
			
				|  |  |          studentPaymentRouteOrder.setRouteOrganId(studentPaymentRouteOrderDto.getOrganId());
 | 
	
		
			
				|  |  |          studentPaymentRouteOrder.setRouteAmount(studentPaymentRouteOrderDto.getActualAmount());
 | 
	
		
			
				|  |  |          studentPaymentRouteOrder.setRouteBalanceAmount(BigDecimal.ZERO);
 |