上传会议文件时增加一个选定会议时间,判定会议时间,只要会议时间没到就是会议没开始的时候就是近期会议,会议开始后在近期会议保留三天,三天后转移到历次会议

This commit is contained in:
lijiaqi 2022-08-04 15:00:13 +08:00
parent 9c30abb3b1
commit 38ed005942
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ public class ApiConferenceController extends ApiBaseController {
wrapper.ge("attachment_num", 1);
wrapper.eq("category", category);
if (StrUtil.isNotBlank(type)) {
if ("near".equals(type)) wrapper.ge("start_time", LocalDateTime.now().minusDays(3L));
if ("history".equals(type)) wrapper.lt("start_time", LocalDateTime.now().minusDays(3L));
if ("near".equals(type)) wrapper.ge("start_time", LocalDateTime.now().minusDays(2L).toLocalDate());
if ("history".equals(type)) wrapper.lt("start_time", LocalDateTime.now().minusDays(2L).toLocalDate());
}
Page page = conferenceService.page(new Page(getPageNum(), getPageSize()), wrapper);