| 
														
															@@ -154,9 +154,14 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @Autowired 
														 | 
														
														 | 
														
															     @Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private StudentInstrumentService studentInstrumentService; 
														 | 
														
														 | 
														
															     private StudentInstrumentService studentInstrumentService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @Autowired 
														 | 
														
														 | 
														
															     @Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    private OrganizationDao organizationDao; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    @Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private GroupEventSource groupEventSource; 
														 | 
														
														 | 
														
															     private GroupEventSource groupEventSource; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @Autowired 
														 | 
														
														 | 
														
															     @Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private WebFeignService webFeignService; 
														 | 
														
														 | 
														
															     private WebFeignService webFeignService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    @Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    private StudentService studentService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @Override 
														 | 
														
														 | 
														
															     @Override 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     public BaseDAO<Long, StudentRegistration> getDAO() { 
														 | 
														
														 | 
														
															     public BaseDAO<Long, StudentRegistration> getDAO() { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -336,15 +341,24 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         studentRegistration.setUpdateTime(date); 
														 | 
														
														 | 
														
															         studentRegistration.setUpdateTime(date); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         studentRegistration.setUserId(sysUser.getId()); 
														 | 
														
														 | 
														
															         studentRegistration.setUserId(sysUser.getId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.APPLY); 
														 | 
														
														 | 
														
															         studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.APPLY); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        if (hasReg != null) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        Organization organization = organizationDao.get(studentRegistration.getOrganId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        String studentGrade = studentService.getStudentGrade(organization.getGradeType(), studentRegistration.getCurrentGradeNum()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        studentRegistration.setCurrentGrade(studentGrade); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        if(hasReg != null){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.APPLY); 
														 | 
														
														 | 
														
															             studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.APPLY); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             studentRegistration.setId(hasReg.getId()); 
														 | 
														
														 | 
														
															             studentRegistration.setId(hasReg.getId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             studentRegistrationDao.update(studentRegistration); 
														 | 
														
														 | 
														
															             studentRegistrationDao.update(studentRegistration); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } else { 
														 | 
														
														 | 
														
															         } else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             studentRegistrationDao.insert(studentRegistration); 
														 | 
														
														 | 
														
															             studentRegistrationDao.insert(studentRegistration); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        //更新年级信息 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        student.setCurrentGradeNum(studentRegistration.getCurrentGradeNum()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        student.setCurrentClass(studentRegistration.getCurrentClass()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        studentDao.update(student); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-//        webFeignService.updateNickName(sysUser.getId(),studentRegistration.getName(),"STUDENT"); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        //webFeignService.updateNickName(sysUser.getId(),studentRegistration.getName(),"STUDENT"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         // 增加报名学生数 
														 | 
														
														 | 
														
															         // 增加报名学生数 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         musicGroupSubjectPlanService.addApplyStudentNum(studentRegistration.getMusicGroupId(), studentRegistration.getSubjectId(), 1); 
														 | 
														
														 | 
														
															         musicGroupSubjectPlanService.addApplyStudentNum(studentRegistration.getMusicGroupId(), studentRegistration.getSubjectId(), 1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         // 报名成功后,发送短信 
														 | 
														
														 | 
														
															         // 报名成功后,发送短信 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -416,7 +430,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 studentPaymentOrderDetail4goodsGroup.setPaymentOrderId(studentPaymentOrder.getId()); 
														 | 
														
														 | 
														
															                 studentPaymentOrderDetail4goodsGroup.setPaymentOrderId(studentPaymentOrder.getId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 studentPaymentOrderDetail4goodsGroup.setKitGroupPurchaseType(goodsGroup.getKitGroupPurchaseType()); 
														 | 
														
														 | 
														
															                 studentPaymentOrderDetail4goodsGroup.setKitGroupPurchaseType(goodsGroup.getKitGroupPurchaseType()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 studentPaymentOrderDetailList.add(studentPaymentOrderDetail4goodsGroup); 
														 | 
														
														 | 
														
															                 studentPaymentOrderDetailList.add(studentPaymentOrderDetail4goodsGroup); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                if (OrderDetailTypeEnum.MUSICAL.equals(type) && KitGroupPurchaseTypeEnum.GROUP.equals(goodsGroup.getKitGroupPurchaseType())) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                if (OrderDetailTypeEnum.MUSICAL.equals(type)) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     maintenanceGoodsId = goodsGroup.getGoodsIdList(); 
														 | 
														
														 | 
														
															                     maintenanceGoodsId = goodsGroup.getGoodsIdList(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } 
														 | 
														
														 | 
														
															                 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -442,7 +456,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (buyMaintenance) { 
														 | 
														
														 | 
														
															         if (buyMaintenance) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if ("".equals(maintenanceGoodsId)) { 
														 | 
														
														 | 
														
															             if ("".equals(maintenanceGoodsId)) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                throw new BizException("团购乐器才能购买乐保,请核查"); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                throw new BizException("有乐器才能购买乐保,请核查"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             BigDecimal maintenancePrice = new BigDecimal(sysConfigDao.findConfigValue("maintenance_price")); 
														 | 
														
														 | 
														
															             BigDecimal maintenancePrice = new BigDecimal(sysConfigDao.findConfigValue("maintenance_price")); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             StudentPaymentOrderDetail maintenanceOrderDetail = new StudentPaymentOrderDetail(); 
														 | 
														
														 | 
														
															             StudentPaymentOrderDetail maintenanceOrderDetail = new StudentPaymentOrderDetail(); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -541,7 +555,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 studentPaymentOrderDetail4goodsGroup.setPaymentOrderId(studentPaymentOrder.getId()); 
														 | 
														
														 | 
														
															                 studentPaymentOrderDetail4goodsGroup.setPaymentOrderId(studentPaymentOrder.getId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 studentPaymentOrderDetail4goodsGroup.setKitGroupPurchaseType(goodsGroup.getKitGroupPurchaseType()); 
														 | 
														
														 | 
														
															                 studentPaymentOrderDetail4goodsGroup.setKitGroupPurchaseType(goodsGroup.getKitGroupPurchaseType()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 studentPaymentOrderDetailList.add(studentPaymentOrderDetail4goodsGroup); 
														 | 
														
														 | 
														
															                 studentPaymentOrderDetailList.add(studentPaymentOrderDetail4goodsGroup); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                if (OrderDetailTypeEnum.MUSICAL.equals(type) && KitGroupPurchaseTypeEnum.GROUP.equals(goodsGroup.getKitGroupPurchaseType())) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                if (OrderDetailTypeEnum.MUSICAL.equals(type)) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     maintenanceGoodsId = goodsGroup.getGoodsIdList(); 
														 | 
														
														 | 
														
															                     maintenanceGoodsId = goodsGroup.getGoodsIdList(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } 
														 | 
														
														 | 
														
															                 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -567,7 +581,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (buyMaintenance) { 
														 | 
														
														 | 
														
															         if (buyMaintenance) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if ("".equals(maintenanceGoodsId)) { 
														 | 
														
														 | 
														
															             if ("".equals(maintenanceGoodsId)) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                throw new BizException("团购乐器才能购买乐保,请核查"); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                throw new BizException("有乐器才能购买乐保,请核查"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             BigDecimal maintenancePrice = new BigDecimal(sysConfigDao.findConfigValue("maintenance_price")); 
														 | 
														
														 | 
														
															             BigDecimal maintenancePrice = new BigDecimal(sysConfigDao.findConfigValue("maintenance_price")); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             StudentPaymentOrderDetail maintenanceOrderDetail = new StudentPaymentOrderDetail(); 
														 | 
														
														 | 
														
															             StudentPaymentOrderDetail maintenanceOrderDetail = new StudentPaymentOrderDetail(); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -691,6 +705,9 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if (studentFeeDaoByUser != null) { 
														 | 
														
														 | 
														
															             if (studentFeeDaoByUser != null) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 throw new BizException("该学员已存在"); 
														 | 
														
														 | 
														
															                 throw new BizException("该学员已存在"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            Organization organization = organizationDao.get(musicGroup.getOrganId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            String studentGrade = studentService.getStudentGrade(organization.getGradeType(), studentRegistration.getCurrentGradeNum()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            studentRegistration.setCurrentGrade(studentGrade); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             studentRegistration.setActualSubjectId(studentRegistration.getSubjectId()); 
														 | 
														
														 | 
														
															             studentRegistration.setActualSubjectId(studentRegistration.getSubjectId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             studentRegistration.setUserId(userId); 
														 | 
														
														 | 
														
															             studentRegistration.setUserId(userId); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             studentRegistration.setPaymentStatus(PaymentStatusEnum.OPEN); 
														 | 
														
														 | 
														
															             studentRegistration.setPaymentStatus(PaymentStatusEnum.OPEN); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -754,7 +771,11 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } else { 
														 | 
														
														 | 
														
															             } else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 studentRegistrationDao.insertBasic(studentRegistration); 
														 | 
														
														 | 
														
															                 studentRegistrationDao.insertBasic(studentRegistration); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            studentRegistrationDao.updateCurrentClass(studentRegistration); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            Student student = studentDao.get(userId); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            student.setCurrentGradeNum(studentRegistration.getCurrentGradeNum()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            student.setCurrentClass(studentRegistration.getCurrentClass()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            studentDao.update(student); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            //studentRegistrationDao.updateCurrentClass(studentRegistration); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return userId; 
														 | 
														
														 | 
														
															             return userId; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1011,7 +1032,10 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             List<StudentPaymentOrderDetail> orderDetails = studentPaymentOrderDetailService.getOrderDetail(studentPaymentOrder.getId()); 
														 | 
														
														 | 
														
															             List<StudentPaymentOrderDetail> orderDetails = studentPaymentOrderDetailService.getOrderDetail(studentPaymentOrder.getId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															             List<StudentPaymentOrderDetail> allDetails = studentPaymentOrderDetailDao.getOrderDetailByOrderId(studentPaymentOrder.getId()); 
														 | 
														
														 | 
														
															             List<StudentPaymentOrderDetail> allDetails = studentPaymentOrderDetailDao.getOrderDetailByOrderId(studentPaymentOrder.getId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            BigDecimal courseFee = allDetails.stream().filter(o -> !o.getType().getCode().equals("MUSICAL")).filter(o -> !o.getType().getCode().equals("ACCESSORIES")).map(o -> o.getPrice().subtract(o.getRemitFee() == null ? BigDecimal.ZERO : o.getRemitFee())) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            BigDecimal courseFee = allDetails.stream().filter(o -> !o.getType().getCode().equals("MUSICAL")) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    .filter(o -> !o.getType().getCode().equals("ACCESSORIES")) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    .filter(o -> !o.getType().getCode().equals("MAINTENANCE")) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    .map(o -> o.getPrice().subtract(o.getRemitFee() == null ? BigDecimal.ZERO : o.getRemitFee())) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     .reduce(BigDecimal.ZERO, BigDecimal::add); 
														 | 
														
														 | 
														
															                     .reduce(BigDecimal.ZERO, BigDecimal::add); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															             //累加充值金额 
														 | 
														
														 | 
														
															             //累加充值金额 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1098,13 +1122,13 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 Map<Integer, String> map = new HashMap<>(1); 
														 | 
														
														 | 
														
															                 Map<Integer, String> map = new HashMap<>(1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 map.put(studentPaymentOrder.getUserId(), studentRegistration.getParentsPhone()); 
														 | 
														
														 | 
														
															                 map.put(studentPaymentOrder.getUserId(), studentRegistration.getParentsPhone()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.AWSMS, 
														 | 
														
														 | 
														
															                 sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.AWSMS, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        MessageTypeEnum.STUDENT_SMS_PAYMENT_SUCCESS, map, null, 0, "1", "", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        MessageTypeEnum.STUDENT_SMS_PAYMENT_SUCCESS, map, null, 0, null, "", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         studentRegistration.getName(), studentPaymentOrder.getActualAmount()); 
														 | 
														
														 | 
														
															                         studentRegistration.getName(), studentPaymentOrder.getActualAmount()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 //push 
														 | 
														
														 | 
														
															                 //push 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 Map<Integer, String> map1 = new HashMap<>(1); 
														 | 
														
														 | 
														
															                 Map<Integer, String> map1 = new HashMap<>(1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 map1.put(studentPaymentOrder.getUserId(), studentPaymentOrder.getUserId().toString()); 
														 | 
														
														 | 
														
															                 map1.put(studentPaymentOrder.getUserId(), studentPaymentOrder.getUserId().toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, 
														 | 
														
														 | 
														
															                 sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        MessageTypeEnum.STUDENT_SMS_PAYMENT_SUCCESS, map1, null, 0, "1", "STUDENT", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        MessageTypeEnum.STUDENT_SMS_PAYMENT_SUCCESS, map1, null, 0, null, "STUDENT", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         studentRegistration.getName(), studentPaymentOrder.getActualAmount()); 
														 | 
														
														 | 
														
															                         studentRegistration.getName(), studentPaymentOrder.getActualAmount()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             try { 
														 | 
														
														 | 
														
															             try { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1139,7 +1163,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 Map<Integer, String> map = new HashMap<>(1); 
														 | 
														
														 | 
														
															                 Map<Integer, String> map = new HashMap<>(1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 map.put(studentPaymentOrder.getUserId(), studentRegistration.getParentsPhone()); 
														 | 
														
														 | 
														
															                 map.put(studentPaymentOrder.getUserId(), studentRegistration.getParentsPhone()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.AWSMS, 
														 | 
														
														 | 
														
															                 sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.AWSMS, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        MessageTypeEnum.STUDENT_SMS_PAYMENT_FAILED, map, null, 0, "1", "", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        MessageTypeEnum.STUDENT_SMS_PAYMENT_FAILED, map, null, 0, null, "", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         HttpUtil.getSortUrl(studentApplyUrl)); 
														 | 
														
														 | 
														
															                         HttpUtil.getSortUrl(studentApplyUrl)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 //            sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, 
														 | 
														
														 | 
														
															 //            sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1359,7 +1383,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @Override 
														 | 
														
														 | 
														
															     @Override 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    @Transactional 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    @Transactional(rollbackFor = Exception.class) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     public StudentRegistration updateStudent(StudentRegistration studentRegistration) { 
														 | 
														
														 | 
														
															     public StudentRegistration updateStudent(StudentRegistration studentRegistration) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (StringUtils.isBlank(studentRegistration.getCertificateType())) { 
														 | 
														
														 | 
														
															         if (StringUtils.isBlank(studentRegistration.getCertificateType())) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             studentRegistration.setCertificateType(CertificateTypeEnum.IDENTITY.getCode()); 
														 | 
														
														 | 
														
															             studentRegistration.setCertificateType(CertificateTypeEnum.IDENTITY.getCode()); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1372,8 +1396,16 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         student.setParentsName(studentRegistration.getParentsName()); 
														 | 
														
														 | 
														
															         student.setParentsName(studentRegistration.getParentsName()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         student.setIdCardNo(studentRegistration.getIdCardNo()); 
														 | 
														
														 | 
														
															         student.setIdCardNo(studentRegistration.getIdCardNo()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         student.setGender(studentRegistration.getGender()); 
														 | 
														
														 | 
														
															         student.setGender(studentRegistration.getGender()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        Organization organization = organizationDao.get(studentRegistration.getOrganId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        String studentGrade = studentService.getStudentGrade(organization.getGradeType(), studentRegistration.getCurrentGradeNum()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        studentRegistration.setCurrentGrade(studentGrade); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         update(studentRegistration); 
														 | 
														
														 | 
														
															         update(studentRegistration); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        studentRegistrationDao.updateUser(student.getUserId(), student.getName(), student.getParentsName(), student.getIdCardNo(), student.getGender(), studentRegistration.getCertificateType()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        studentRegistrationDao.updateUser(student.getUserId(),student.getName(), student.getParentsName(), student.getIdCardNo(), student.getGender(),studentRegistration.getCertificateType()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        //更新年级信息 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        Student studentInfo = studentDao.get(student.getUserId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        studentInfo.setCurrentGradeNum(studentRegistration.getCurrentGradeNum()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        studentInfo.setCurrentClass(studentRegistration.getCurrentClass()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        studentDao.update(studentInfo); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         // 添加用户电子签章账户 
														 | 
														
														 | 
														
															         // 添加用户电子签章账户 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (CertificateTypeEnum.IDENTITY.getCode().equals(studentRegistration.getCertificateType())) { 
														 | 
														
														 | 
														
															         if (CertificateTypeEnum.IDENTITY.getCode().equals(studentRegistration.getCertificateType())) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             contractService.register(student.getUserId(), student.getParentsName(), student.getIdCardNo(), student.getParentsPhone()); 
														 | 
														
														 | 
														
															             contractService.register(student.getUserId(), student.getParentsName(), student.getIdCardNo(), student.getParentsPhone()); 
														 |