修复后台【门店管理-公告管理】数据筛选错误的bug

master
sjl 5 years ago
parent 9bf9e43d23
commit 992c257b77

@ -49,6 +49,7 @@ public class NoticeController {
public ResponseEntity<IPage<Notice>> getNoticePage(PageParam<Notice> page, Notice notice) { public ResponseEntity<IPage<Notice>> getNoticePage(PageParam<Notice> page, Notice notice) {
IPage<Notice> noticeIPage = noticeService.page(page, new LambdaQueryWrapper<Notice>() IPage<Notice> noticeIPage = noticeService.page(page, new LambdaQueryWrapper<Notice>()
.eq(notice.getStatus() != null, Notice::getStatus, notice.getStatus()) .eq(notice.getStatus() != null, Notice::getStatus, notice.getStatus())
.eq(notice.getIsTop()!=null,Notice::getIsTop,notice.getIsTop())
.like(notice.getTitle() != null, Notice::getTitle, notice.getTitle()).orderByDesc(Notice::getUpdateTime)); .like(notice.getTitle() != null, Notice::getTitle, notice.getTitle()).orderByDesc(Notice::getUpdateTime));
return ResponseEntity.ok(noticeIPage); return ResponseEntity.ok(noticeIPage);
} }

Loading…
Cancel
Save