|  | @@ -69,7 +69,7 @@ public class StudentInstrumentServiceImpl extends BaseServiceImpl<Long, StudentI
 | 
	
		
			
				|  |  |              throw new BizException("所选乐器不存在,请核查");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          Integer userId = studentInstrument.getStudentId();
 | 
	
		
			
				|  |  | -        BigDecimal orderAmount = new BigDecimal(300);
 | 
	
		
			
				|  |  | +        BigDecimal orderAmount = new BigDecimal(sysConfigDao.findConfigValue("maintenance_price"));
 | 
	
		
			
				|  |  |          BigDecimal amount = maintenancePayDto.getAmount(); //扣除余额之前的金额
 | 
	
		
			
				|  |  |          if (amount.compareTo(orderAmount) != 0) {
 | 
	
		
			
				|  |  |              throw new BizException("商品价格不符");
 | 
	
	
		
			
				|  | @@ -179,11 +179,11 @@ public class StudentInstrumentServiceImpl extends BaseServiceImpl<Long, StudentI
 | 
	
		
			
				|  |  |                  logger.error("产品协议生成失败", e);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              Date startTime = nowDate;
 | 
	
		
			
				|  |  | -            Date endTime = DateUtil.addDays(DateUtil.addYears(nowDate, 1), -1);
 | 
	
		
			
				|  |  | +            Date endTime = DateUtil.addYears(nowDate, 1);
 | 
	
		
			
				|  |  |              if (studentInstrument.getEndTime() != null &&
 | 
	
		
			
				|  |  | -                    DateUtil.getLastTimeWithDay(studentInstrument.getEndTime()).compareTo(nowDate) >= 0) {
 | 
	
		
			
				|  |  | +                    studentInstrument.getEndTime().compareTo(nowDate) >= 0) {
 | 
	
		
			
				|  |  |                  startTime = studentInstrument.getStartTime();
 | 
	
		
			
				|  |  | -                endTime = DateUtil.addDays(DateUtil.addYears(studentInstrument.getStartTime(), 1), -1);
 | 
	
		
			
				|  |  | +                endTime = DateUtil.addYears(studentInstrument.getEndTime(), 1);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              studentInstrument.setStartTime(startTime);
 | 
	
		
			
				|  |  |              studentInstrument.setEndTime(endTime);
 | 
	
	
		
			
				|  | @@ -280,7 +280,7 @@ public class StudentInstrumentServiceImpl extends BaseServiceImpl<Long, StudentI
 | 
	
		
			
				|  |  |              maintenanceDetail = orderDetails4Maintenance.get(0);
 | 
	
		
			
				|  |  |              maintenanceStatus = 1;
 | 
	
		
			
				|  |  |              startTime = new Date();
 | 
	
		
			
				|  |  | -            endTime = DateUtil.addDays(DateUtil.addYears(startTime, 1), -1);
 | 
	
		
			
				|  |  | +            endTime = DateUtil.addYears(startTime, 1);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          Integer goodsId = Integer.valueOf(orderDetails4Instruments.get(0).getGoodsIdList());
 |