|  | @@ -161,6 +161,8 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |      private SimpleDateFormat sdf_ymd = new SimpleDateFormat("yyyy-MM-dd");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      private SimpleDateFormat sdf_hms = new SimpleDateFormat("HH:mm:ss");
 | 
	
		
			
				|  |  | +    
 | 
	
		
			
				|  |  | +    private SimpleDateFormat sdf_ymdhms = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public BaseDAO<String, MusicGroup> getDAO() {
 | 
	
	
		
			
				|  | @@ -304,16 +306,29 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          if (chargeInfo.getMaxAmount() != null) {
 | 
	
		
			
				|  |  |              if (chargeInfo.getOpenMaxTerm().equals(YesOrNoEnum.YES) && chargeInfo.getMaxAmount().compareTo(chargeInfo.getPaidAmount()) <= 0) {
 | 
	
		
			
				|  |  | -                throw new Exception("活动人数暂时已满,请稍后再试");
 | 
	
		
			
				|  |  | +                throw new Exception("活动名额已满,谢谢您的支持!");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              if (chargeInfo.getOpenMaxTerm().equals(YesOrNoEnum.YES) && chargeInfo.getMaxAmount().compareTo(chargeInfo.getPaidAmount().add(amount)) < 0) {
 | 
	
		
			
				|  |  | -                throw new Exception("活动数量暂时已满,请调整数量或稍后再试");
 | 
	
		
			
				|  |  | +                throw new Exception("活动名额已满,谢谢您的支持!");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        Date date = new Date();
 | 
	
		
			
				|  |  | +        
 | 
	
		
			
				|  |  |          OrderTypeEnum type = OrderTypeEnum.SPORADIC;
 | 
	
		
			
				|  |  |          if (chargeInfo.getChargeType().equals(SporadicChargeTypeEnum.DOUBLE_ELEVEN2020)) {
 | 
	
		
			
				|  |  |              type = OrderTypeEnum.DOUBLE_ELEVEN2020;
 | 
	
		
			
				|  |  | +            
 | 
	
		
			
				|  |  | +            String startTimeStr = sysConfigDao.findConfigValue(SysConfigService.START_TIME_OF_1111);
 | 
	
		
			
				|  |  | +            String endTimeStr = sysConfigDao.findConfigValue(SysConfigService.END_TIME_OF_1111);
 | 
	
		
			
				|  |  | +            Date startTime = sdf_ymdhms.parse(startTimeStr);
 | 
	
		
			
				|  |  | +            Date endTime = sdf_ymdhms.parse(endTimeStr);
 | 
	
		
			
				|  |  | +            if(date.before(startTime)){
 | 
	
		
			
				|  |  | +            	throw new Exception("活动暂未开始,请您耐心等待!");
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            if(date.after(endTime)){
 | 
	
		
			
				|  |  | +            	throw new Exception("活动已结束,谢谢您的支持!");
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          Integer userId = sporadicPayDto.getUserId();
 | 
	
	
		
			
				|  | @@ -332,7 +347,6 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |          studentPaymentOrderService.insert(studentPaymentOrder);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          studentPaymentOrder.setVersion(0);
 | 
	
		
			
				|  |  | -        Date date = new Date();
 | 
	
		
			
				|  |  |          BigDecimal balance = BigDecimal.ZERO;
 | 
	
		
			
				|  |  |          if (sporadicPayDto.getUseBalancePayment() && amount.compareTo(BigDecimal.ZERO) > 0) {
 | 
	
		
			
				|  |  |              if (chargeInfo.getChargeType().getCode().equals(9)) {
 |