소스 검색

fix 预定后面日期默认时间为8:00

tags/B.1.1.0.0_20230818_base^2
yk 2 년 전
부모
커밋
8deee78dee
1개의 변경된 파일10개의 추가작업 그리고 6개의 파일을 삭제
  1. +10
    -6
      xueyi-modules/xueyi-system/src/main/java/com/xueyi/system/meeting/controller/api/DmMeetingInnerApiController.java

+ 10
- 6
xueyi-modules/xueyi-system/src/main/java/com/xueyi/system/meeting/controller/api/DmMeetingInnerApiController.java 파일 보기

@@ -406,14 +406,18 @@ public class DmMeetingInnerApiController extends BaseApiController {
}*/

//获得当前时间开始最近的整点,或者半点
LocalTime currentTime = LocalTime.now();
if (currentTime.getMinute() >= 30) {
currentTime = currentTime.plusHours(1).withMinute(0).withSecond(0);
} else {
currentTime = currentTime.withMinute(30).withSecond(0);
String currentStr = "08:00";
if (dateStr.compareTo(DateUtils.formatDate(new Date(), "yyyy-MM-dd")) == 0) {
LocalTime currentTime = LocalTime.now();
if (currentTime.getMinute() >= 30) {
currentTime = currentTime.plusHours(1).withMinute(0).withSecond(0);
} else {
currentTime = currentTime.withMinute(30).withSecond(0);
}

currentStr = currentTime.format(DateTimeFormatter.ofPattern("HH:mm"));
}

String currentStr = currentTime.format(DateTimeFormatter.ofPattern("HH:mm"));
Map<Long, List<DmMeetingOrdersPo>> groupedByRoom = list.stream()
.collect(Collectors.groupingBy(DmMeetingOrdersPo::getSpaceId));



불러오는 중...
취소
저장