|
@@ -272,26 +272,26 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
}
|
|
|
MusicGroup musicGroup = saveLog(musicGroupId,MusicGroupStatusEnum.PREPARE);
|
|
|
//乐器采购清单是否确认
|
|
|
- Map<String,Object> param = new HashMap<>();
|
|
|
- param.put("musicGroupId",musicGroupId);
|
|
|
- int i = musicGroupPurchaseListDao.queryCount(param);
|
|
|
- if(i <= 0){
|
|
|
- throw new Exception("采购清单未确认");
|
|
|
- }
|
|
|
+// Map<String,Object> param = new HashMap<>();
|
|
|
+// param.put("musicGroupId",musicGroupId);
|
|
|
+// int i = musicGroupPurchaseListDao.queryCount(param);
|
|
|
+// if(i <= 0){
|
|
|
+// throw new Exception("采购清单未确认");
|
|
|
+// }
|
|
|
//课酬是否确认
|
|
|
// courseScheduleTeacherSalaryDao.queryCount();
|
|
|
//记录操作日志
|
|
|
- musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId,"确认开团(筹备中 -> 进行中)",sysUser.getId(),""));
|
|
|
- musicGroup.setStatus(MusicGroupStatusEnum.PROGRESS);
|
|
|
- musicGroupDao.update(musicGroup);
|
|
|
+// musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId,"确认开团(筹备中 -> 进行中)",sysUser.getId(),""));
|
|
|
+// musicGroup.setStatus(MusicGroupStatusEnum.PROGRESS);
|
|
|
+// musicGroupDao.update(musicGroup);
|
|
|
//3.0发送该消息
|
|
|
if(new Integer(3).equals(musicGroup.getChargeTypeId())){
|
|
|
//给老师发送乐团成立通知
|
|
|
- Map<Integer,String> map = JSONObject.parseObject(JSONObject.toJSONString(MapUtil.convertMybatisMap(musicGroupDao.queryTeacherIdMap(musicGroupId))),HashMap.class);
|
|
|
- sysMessageService.batchSendMessage(MessageSender.JIGUANG,MessageTypeEnum.TEACHER_PUSH_MUSIC_GROUP_COURSE_ADD_PLAN,
|
|
|
+ Map<Integer,String> map = JSONObject.parseObject(JSONObject.toJSONString(MapUtil.convertMybatisMap(musicGroupDao.queryTeacherMap(musicGroupId))),HashMap.class);
|
|
|
+ sysMessageService.batchSendMessage(MessageSender.YIMEI,MessageTypeEnum.TEACHER_PUSH_MUSIC_GROUP_COURSE_ADD_PLAN,
|
|
|
map,null,0,"1",musicGroup.getName());
|
|
|
}
|
|
|
- Map<Integer,String> studentMap = JSONObject.parseObject(JSONObject.toJSONString(MapUtil.convertMybatisMap(studentRegistrationDao.findMapByMusicGroupId(musicGroupId))),HashMap.class);
|
|
|
+ Map<Integer,String> studentMap = JSONObject.parseObject(JSONObject.toJSONString(MapUtil.convertMybatisMap(studentRegistrationDao.findMapByMusicGroupId(musicGroupId,2))),HashMap.class);
|
|
|
|
|
|
if(studentMap != null && studentMap.size() > 0){
|
|
|
String url = "http://mstudev.dayaedu.com/#/smallRegister?musicGroupId=" + musicGroupId;
|
|
@@ -990,7 +990,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
//所有人开启缴费
|
|
|
studentRegistrationDao.musicGroupOpenPay(musicGroupId,PaymentStatusEnum.OPEN);
|
|
|
//获取所有已报名学员列表
|
|
|
- HashMap<Integer,String> map = JSONObject.parseObject(JSONObject.toJSONString(MapUtil.convertMybatisMap(studentRegistrationDao.findMapByMusicGroupId(musicGroupId))), HashMap.class);
|
|
|
+ HashMap<Integer,String> map = JSONObject.parseObject(JSONObject.toJSONString(MapUtil.convertMybatisMap(studentRegistrationDao.findMapByMusicGroupId(musicGroupId,0))), HashMap.class);
|
|
|
if(map != null && map.size() > 0){
|
|
|
String studentApplyUrl = sysConfigDao.findConfigValue(SysConfigService.STUDENT_APPLY_URL) + musicGroupId;
|
|
|
String serverPhone = sysConfigDao.findConfigValue(SysConfigService.SERVER_PHONE);
|