|
@@ -156,7 +156,7 @@ public class WmTaskContentServiceImpl extends ServiceImpl<WmTaskContentMapper, W
|
|
|
long meetingTaskCount = wmTaskService.countMeetingTask(CollectionUtil.toList("1", "2", "3", "4"),
|
|
|
String.valueOf(sysU.getUserId()), start, end);
|
|
|
log.info("会议举办次数:{}", meetingTaskCount);
|
|
|
- if (meetingTaskCount >= defMeetingTaskCount) {
|
|
|
+ if (meetingTaskCount >= 2L) {
|
|
|
return R.failed(1, "每天最多举办两场会议");
|
|
|
}
|
|
|
|
|
@@ -208,7 +208,7 @@ public class WmTaskContentServiceImpl extends ServiceImpl<WmTaskContentMapper, W
|
|
|
long meetingTaskCount = wmTaskService.countMeetingTask(CollectionUtil.toList("34", "35", "36", "37"),
|
|
|
String.valueOf(sysU.getUserId()), start, end);
|
|
|
log.info("培训次数:{}", meetingTaskCount);
|
|
|
- if (meetingTaskCount >= defMeetingTaskCount) {
|
|
|
+ if (meetingTaskCount >= 2L) {
|
|
|
return R.failed(1, "每天最多举办两场培训");
|
|
|
}
|
|
|
|