|  | @@ -300,7 +300,6 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
											
												
													
														|  |                  .add(repairActualAmount)
 |  |                  .add(repairActualAmount)
 | 
											
												
													
														|  |                  .add(activityActualAmount).setScale(0, BigDecimal.ROUND_HALF_UP);
 |  |                  .add(activityActualAmount).setScale(0, BigDecimal.ROUND_HALF_UP);
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -        }
 |  | 
 | 
											
												
													
														|  |          PaymentCalenderStatusEnum status = PaymentCalenderStatusEnum.DRAFT;
 |  |          PaymentCalenderStatusEnum status = PaymentCalenderStatusEnum.DRAFT;
 | 
											
												
													
														|  |          /*if (musicGroupPaymentBaseCalender.getPayUserType() == SCHOOL) {
 |  |          /*if (musicGroupPaymentBaseCalender.getPayUserType() == SCHOOL) {
 | 
											
												
													
														|  |              status = AUDITING;
 |  |              status = AUDITING;
 | 
											
										
											
												
													
														|  | @@ -337,11 +336,10 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
											
												
													
														|  |          musicGroupPaymentCalender.setPaymentType(musicGroupPaymentBaseCalender.getPaymentType());
 |  |          musicGroupPaymentCalender.setPaymentType(musicGroupPaymentBaseCalender.getPaymentType());
 | 
											
												
													
														|  |          musicGroupPaymentCalender.setCurrentTotalAmount(actualTotalAmount);
 |  |          musicGroupPaymentCalender.setCurrentTotalAmount(actualTotalAmount);
 | 
											
												
													
														|  |          musicGroupPaymentCalender.setOriginalTotalAmount(originalTotalAmount);
 |  |          musicGroupPaymentCalender.setOriginalTotalAmount(originalTotalAmount);
 | 
											
												
													
														|  | -        musicGroupPaymentCalender.setStatus(AUDITING);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        musicGroupPaymentCalender.setStatus(status);
 | 
											
												
													
														|  |          musicGroupPaymentCalender.setOrganId(musicGroup.getOrganId());
 |  |          musicGroupPaymentCalender.setOrganId(musicGroup.getOrganId());
 | 
											
												
													
														|  |          musicGroupPaymentCalender.setPaymentItemShowState(musicGroupPaymentBaseCalender.getPaymentItemShowState());
 |  |          musicGroupPaymentCalender.setPaymentItemShowState(musicGroupPaymentBaseCalender.getPaymentItemShowState());
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -        }
 |  | 
 | 
											
												
													
														|  |          /*if (musicGroupPaymentCalender.getStatus() != AUDITING) {
 |  |          /*if (musicGroupPaymentCalender.getStatus() != AUDITING) {
 | 
											
												
													
														|  |              if (date.after(musicGroupPaymentCalender.getStartPaymentDate())) {
 |  |              if (date.after(musicGroupPaymentCalender.getStartPaymentDate())) {
 | 
											
												
													
														|  |                  musicGroupPaymentCalender.setStatus(PaymentCalenderStatusEnum.OPEN);
 |  |                  musicGroupPaymentCalender.setStatus(PaymentCalenderStatusEnum.OPEN);
 | 
											
										
											
												
													
														|  | @@ -404,44 +402,31 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          // 如果是报名,需要修改乐团状态
 |  |          // 如果是报名,需要修改乐团状态
 | 
											
												
													
														|  |          if (musicGroupPaymentBaseCalender.getPaymentType() == MUSIC_APPLY) {
 |  |          if (musicGroupPaymentBaseCalender.getPaymentType() == MUSIC_APPLY) {
 | 
											
												
													
														|  | -            }
 |  | 
 | 
											
												
													
														|  |          	// 记录操作日志
 |  |          	// 记录操作日志
 | 
											
												
													
														|  |              musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId, "报名缴费项目创建成功", sysUser.getId(), ""));
 |  |              musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId, "报名缴费项目创建成功", sysUser.getId(), ""));
 | 
											
												
													
														|  |              
 |  |              
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |              musicGroup.setUpdateTime(date);
 |  |              musicGroup.setUpdateTime(date);
 | 
											
												
													
														|  |              musicGroupDao.update(musicGroup);
 |  |              musicGroupDao.update(musicGroup);
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | 
 |  | +        
 | 
											
												
													
														|  |          Organization organization = organizationDao.get(musicGroup.getOrganId());
 |  |          Organization organization = organizationDao.get(musicGroup.getOrganId());
 | 
											
												
													
														|  |          sendSeoMessageSource.sendSeoMessage(musicGroup.getOrganId(), new SysUserRoleEnum[]{ORGAN_MANAGER},
 |  |          sendSeoMessageSource.sendSeoMessage(musicGroup.getOrganId(), new SysUserRoleEnum[]{ORGAN_MANAGER},
 | 
											
												
													
														|  |                  null, null, MessageTypeEnum.BACKSTAGE_PAYMENT_CALENDER_AUDIT, organization.getName(), musicGroup.getName());
 |  |                  null, null, MessageTypeEnum.BACKSTAGE_PAYMENT_CALENDER_AUDIT, organization.getName(), musicGroup.getName());
 | 
											
												
													
														|  | -/*        if (status == AUDITING) {
 |  | 
 | 
											
												
													
														|  | -            // 如果是审核中
 |  | 
 | 
											
												
													
														|  | -            Organization organization = organizationDao.get(musicGroup.getOrganId());
 |  | 
 | 
											
												
													
														|  | -            sendSeoMessageSource.sendSeoMessage(musicGroup.getOrganId(), new SysUserRoleEnum[]{ORGAN_MANAGER},
 |  | 
 | 
											
												
													
														|  | -                    null, null, MessageTypeEnum.BACKSTAGE_PAYMENT_CALENDER_AUDIT, organization.getName(), musicGroup.getName());
 |  | 
 | 
											
												
													
														|  | -        } else {
 |  | 
 | 
											
												
													
														|  | -            if (musicGroupPaymentCalender.getPaymentType() == PaymentType.ADD_STUDENT) {
 |  | 
 | 
											
												
													
														|  | -                addStudent(musicGroupPaymentCalender, musicGroup);
 |  | 
 | 
											
												
													
														|  | -                //将0元未缴费学员缴费状态更新为已缴费
 |  | 
 | 
											
												
													
														|  | -                this.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender, true);
 |  | 
 | 
											
												
													
														|  | -                // 学生加到班级
 |  | 
 | 
											
												
													
														|  | -                classGroupService.addStudentToClassGroupAndCourseArranging(calenderAddStudent.getStudentIds(), calenderAddStudent.getClassGroupIds(),
 |  | 
 | 
											
												
													
														|  | -                        batchNo, musicGroupPaymentBaseCalender.getMusicGroupPaymentCalenderCourseSettingsList(), musicGroup);
 |  | 
 | 
											
												
													
														|  | -                ExecutorService executor = Executors.newFixedThreadPool(5);
 |  | 
 | 
											
												
													
														|  | -                CompletableFuture.runAsync(() -> {
 |  | 
 | 
											
												
													
														|  | -                    imUserFriendService.refreshGroupImUserFriend(musicGroupId, GroupType.MUSIC);
 |  | 
 | 
											
												
													
														|  | -                }, executor);
 |  | 
 | 
											
												
													
														|  | -                executor.shutdown();
 |  | 
 | 
											
												
													
														|  | -            }
 |  | 
 | 
											
												
													
														|  | -        }*/
 |  | 
 | 
											
												
													
														|  | 
 |  | +        
 | 
											
												
													
														|  | 
 |  | +        if (musicGroupPaymentCalender.getPaymentType() == PaymentType.ADD_STUDENT) {
 | 
											
												
													
														|  | 
 |  | +            addStudent(musicGroupPaymentCalender, musicGroup);
 | 
											
												
													
														|  | 
 |  | +            //将0元未缴费学员缴费状态更新为已缴费
 | 
											
												
													
														|  | 
 |  | +            this.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender, true);
 | 
											
												
													
														|  | 
 |  | +            // 学生加到班级
 | 
											
												
													
														|  | 
 |  | +            classGroupService.addStudentToClassGroupAndCourseArranging(calenderAddStudent.getStudentIds(), calenderAddStudent.getClassGroupIds(),
 | 
											
												
													
														|  | 
 |  | +                    batchNo, musicGroupPaymentBaseCalender.getMusicGroupPaymentCalenderCourseSettingsList(), musicGroup);
 | 
											
												
													
														|  | 
 |  | +            ExecutorService executor = Executors.newFixedThreadPool(5);
 | 
											
												
													
														|  | 
 |  | +            CompletableFuture.runAsync(() -> {
 | 
											
												
													
														|  | 
 |  | +                imUserFriendService.refreshGroupImUserFriend(musicGroupId, GroupType.MUSIC);
 | 
											
												
													
														|  | 
 |  | +            }, executor);
 | 
											
												
													
														|  | 
 |  | +            executor.shutdown();
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        
 | 
											
												
													
														|  |          ModelMap map = new ModelMap(1);
 |  |          ModelMap map = new ModelMap(1);
 | 
											
												
													
														|  |          map.put("musicGroupPaymentCalenderBatchNo", batchNo);
 |  |          map.put("musicGroupPaymentCalenderBatchNo", batchNo);
 | 
											
												
													
														|  |          return BaseController.succeed(map);
 |  |          return BaseController.succeed(map);
 |