时间验证
This commit is contained in:
parent
35ff05d871
commit
6628d3f8eb
@ -128,6 +128,15 @@ public class CaseplatformCaseService {
|
||||
return ResponseDTO.ok(SmartPageUtil.emptyResult(page));
|
||||
}
|
||||
}
|
||||
|
||||
// 时间处理
|
||||
if (queryForm.getExamineTime() != null && queryForm.getExamineTime().size() == 2) {
|
||||
LocalDateTime start = queryForm.getExamineTime().get(0).withHour(0).withMinute(0).withSecond(0).withNano(0);
|
||||
LocalDateTime end = queryForm.getExamineTime().get(1).withHour(23).withMinute(59).withSecond(59).withNano(999_999_999);
|
||||
queryForm.getExamineTime().set(0, start);
|
||||
queryForm.getExamineTime().set(1, end);
|
||||
}
|
||||
|
||||
List<CaseplatformCaseVO> list = caseplatformCaseDao.queryPage(page, queryForm, provList);
|
||||
PageResult<CaseplatformCaseVO> pageResult = SmartPageUtil.convert2PageResult(page, list);
|
||||
return ResponseDTO.ok(pageResult);
|
||||
@ -637,6 +646,15 @@ public class CaseplatformCaseService {
|
||||
return ResponseDTO.ok(SmartPageUtil.emptyResult(page));
|
||||
}
|
||||
}
|
||||
|
||||
// 时间处理
|
||||
if (queryForm.getCreateTime() != null && queryForm.getCreateTime().size() == 2) {
|
||||
LocalDateTime start = queryForm.getCreateTime().get(0).withHour(0).withMinute(0).withSecond(0).withNano(0);
|
||||
LocalDateTime end = queryForm.getCreateTime().get(1).withHour(23).withMinute(59).withSecond(59).withNano(999_999_999);
|
||||
queryForm.getCreateTime().set(0, start);
|
||||
queryForm.getCreateTime().set(1, end);
|
||||
}
|
||||
|
||||
List<CaseplatformAcAppVO> list = caseplatformAcAppDao.queryPage(page, queryForm, provList);
|
||||
PageResult<CaseplatformAcAppVO> pageResult = SmartPageUtil.convert2PageResult(page, list);
|
||||
return ResponseDTO.ok(pageResult);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user