Commit e0c2551b by 王祖波

默认查最近一年内的的数据

parent caf28e88
......@@ -90,7 +90,7 @@ public class InteractRecordServiceImpl implements InteractRecordService {
return new Page<>();
}
// 默认查最近一年内的的数据
if (interactRecordQO.getStartTime() == null || interactRecordQO.getStartTime().before(DateUtil.addNumForYear(new Date(), -1))) {
if (interactRecordQO.getStartTime() == null) {
interactRecordQO.setStartTime(DateUtil.addNumForYear(new Date(), -1));
}
PageHelper.startPage(interactRecordQO.getPageNum(), interactRecordQO.getPageSize());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment