Forráskód Böngészése

feat: 会议举办次数限制-加日志

lixuesong 3 éve
szülő
commit
ecc49d01fc

+ 4 - 2
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/service/impl/WmTaskContentServiceImpl.java

@@ -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, "每天最多举办两场一对一专访");
 			}