|
@@ -4828,21 +4828,21 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
|
applyBaseInfoDto.setCourseScheduleJson(JSON.toJSONString(courseSchedules));
|
|
|
practiceGroupDao.update(applyBaseInfoDto);
|
|
|
|
|
|
- Set<Integer> roleIds = new HashSet<>(1);
|
|
|
- roleIds.add(SysUserRole.SECTION_MANAGER);
|
|
|
- Map<String,Long> memo = new HashMap<>(1);
|
|
|
- memo.put("practiceGroupId",applyBaseInfoDto.getId());
|
|
|
- if(Objects.isNull(teacher)){
|
|
|
- throw new BizException("该用户不存在");
|
|
|
- }
|
|
|
- Set<Integer> userIds = musicGroupDao.queryUserIdByRoleId(roleIds,teacher.getTeacherOrganId());
|
|
|
- if(CollectionUtils.isEmpty(userIds)){
|
|
|
- throw new BizException("当前分部没有运营主管,无法创建,请联系总部工作人员!");
|
|
|
- }
|
|
|
- if(applyBaseInfoDto.getEducationalTeacherId() != null){
|
|
|
- userIds.add(applyBaseInfoDto.getEducationalTeacherId());
|
|
|
- }
|
|
|
- sysMessageService.batchSeoMessage(userIds,MessageTypeEnum.BACKSTAGE_TEACHER_APPLY_PRACTICE, JSONObject.toJSONString(memo),teacher.getRealName());
|
|
|
+// Set<Integer> roleIds = new HashSet<>(1);
|
|
|
+// roleIds.add(SysUserRole.SECTION_MANAGER);
|
|
|
+// Map<String,Long> memo = new HashMap<>(1);
|
|
|
+// memo.put("practiceGroupId",applyBaseInfoDto.getId());
|
|
|
+// if(Objects.isNull(teacher)){
|
|
|
+// throw new BizException("该用户不存在");
|
|
|
+// }
|
|
|
+// Set<Integer> userIds = musicGroupDao.queryUserIdByRoleId(roleIds,teacher.getTeacherOrganId());
|
|
|
+// if(CollectionUtils.isEmpty(userIds)){
|
|
|
+// throw new BizException("当前分部没有运营主管,无法创建,请联系总部工作人员!");
|
|
|
+// }
|
|
|
+// if(applyBaseInfoDto.getEducationalTeacherId() != null){
|
|
|
+// userIds.add(applyBaseInfoDto.getEducationalTeacherId());
|
|
|
+// }
|
|
|
+// sysMessageService.batchSeoMessage(userIds,MessageTypeEnum.BACKSTAGE_TEACHER_APPLY_PRACTICE, JSONObject.toJSONString(memo),teacher.getRealName());
|
|
|
return BaseController.succeed(applyBaseInfoDto.getAuditStatus().getCode());
|
|
|
}
|
|
|
|