|
@@ -134,7 +134,8 @@ public class WmTaskContentServiceImpl extends ServiceImpl<WmTaskContentMapper, W
|
|
|
LocalDate.parse(wmTaskContent.getTemp4(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"));
|
|
|
LocalDateTime start = LocalDateTime.of(currentLookintoDate,LocalTime.MIN);
|
|
|
LocalDateTime end = LocalDateTime.of(currentLookintoDate,LocalTime.MAX);
|
|
|
- Long meetingTaskCount = wmTaskService.countMeetingTask(CollectionUtil.toList("1", "2", "3", "4"), start, end);
|
|
|
+ long meetingTaskCount = wmTaskService.countMeetingTask(CollectionUtil.toList("1", "2", "3", "4"), start, end);
|
|
|
+ log.info("会议举办次数:{}", meetingTaskCount);
|
|
|
if (meetingTaskCount >= 2L) {
|
|
|
return R.failed(1, "每天最多举办两场会议");
|
|
|
}
|
|
@@ -158,7 +159,8 @@ public class WmTaskContentServiceImpl extends ServiceImpl<WmTaskContentMapper, W
|
|
|
LocalDate.parse(wmTaskContent.getTemp4(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"));
|
|
|
LocalDateTime start = LocalDateTime.of(currentLookintoDate,LocalTime.MIN);
|
|
|
LocalDateTime end = LocalDateTime.of(currentLookintoDate,LocalTime.MAX);
|
|
|
- Long meetingTaskCount = wmTaskService.countMeetingTask(CollectionUtil.toList("19"), start, end);
|
|
|
+ long meetingTaskCount = wmTaskService.countMeetingTask(CollectionUtil.toList("19"), start, end);
|
|
|
+ log.info("一对一专访次数:{}", meetingTaskCount);
|
|
|
if (meetingTaskCount >= 2L) {
|
|
|
return R.failed(1, "每天最多举办两场一对一专访");
|
|
|
}
|