소스 검색

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

lixuesong 3 년 전
부모
커밋
ecc49d01fc
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/service/impl/WmTaskContentServiceImpl.java

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