| | |
| | | ArrayList<PublicityVo> publicityVos = new ArrayList<>(); |
| | | PageParam<Publicity> publicityPageParam ; |
| | | if (publicity.getStatus()!=null ){ |
| | | publicityPageParam = publicityService.page(page, new QueryWrapper<Publicity>().like(StringUtils.isNotBlank(publicity.getPublicityTitle()),"publicity_title",publicity.getPublicityTitle()).eq("status",publicity.getStatus()).orderByDesc("ctime")); |
| | | publicityPageParam = publicityService.page(page, |
| | | new QueryWrapper<Publicity>().like(StringUtils.isNotBlank(publicity.getPublicityTitle()), |
| | | "publicity_title", |
| | | publicity.getPublicityTitle()).eq("status",publicity.getStatus()).orderByDesc("ctime")); |
| | | }else { |
| | | publicityPageParam = publicityService.page(page, new QueryWrapper<Publicity>().like(StringUtils.isNotBlank(publicity.getPublicityTitle()),"publicity_title",publicity.getPublicityTitle()).orderByDesc("ctime")); |
| | | publicityPageParam = publicityService.page(page, |
| | | new QueryWrapper<Publicity>().like(StringUtils.isNotBlank(publicity.getPublicityTitle()), |
| | | "publicity_title", |
| | | publicity.getPublicityTitle()).orderByDesc("ctime")); |
| | | } |
| | | publicityPageParam.getRecords().forEach(item->{ |
| | | PublicityVo publicityVo = new PublicityVo(); |