|
@@ -35,6 +35,23 @@ public class SysNoticeServiceImpl implements ISysNoticeService {
|
|
|
return TableDataInfo.build(page);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public TableDataInfo<SysNotice> selectPageNoticeListApp(SysNotice notice, PageQuery pageQuery) {
|
|
|
+ LambdaQueryWrapper<SysNotice> lqw = new LambdaQueryWrapper<SysNotice>();
|
|
|
+ String str = "3";
|
|
|
+ if (StringUtils.isNotBlank(notice.getNoticeType()) && str.equals(notice.getNoticeType())) {
|
|
|
+ lqw.eq(SysNotice::getNoticeType, str);
|
|
|
+ }
|
|
|
+ String[] arr = {"1", "2"};
|
|
|
+ List<String> list = Arrays.asList(arr);
|
|
|
+ if (StringUtils.isNotBlank(notice.getNoticeType()) && list.contains(notice.getNoticeType())) {
|
|
|
+ lqw.in(SysNotice::getNoticeType, list);
|
|
|
+ }
|
|
|
+ lqw.orderByDesc(SysNotice::getCreateTime);
|
|
|
+ Page<SysNotice> page = baseMapper.selectPage(pageQuery.build(), lqw);
|
|
|
+ return TableDataInfo.build(page);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 查询公告信息
|
|
|
*
|