| | |
| | | queryWrapper.orderByDesc(Notices::getCreateDate); |
| | | } |
| | | PageData<Notices> pageData = PageData.from(noticesMapper.selectJoinPage(page,Notices.class, queryWrapper)); |
| | | |
| | | return pageData; |
| | | } |
| | | |
| | |
| | | queryWrapper.eq(Notices::getUserId, noticesDTO.getMemberId()); |
| | | queryWrapper.eq(Notices::getSendacopy,Constants.ONE); |
| | | if(Objects.nonNull(noticesDTO.getNoRead())&&Constants.equalsInteger(noticesDTO.getNoRead(),Constants.ONE)){ |
| | | queryWrapper.eq(Notices::getReaded,Constants.ONE); |
| | | queryWrapper.eq(Notices::getReaded,Constants.ZERO); |
| | | } |
| | | }else{ |
| | | queryWrapper.eq("1","2"); |
| | |
| | | queryWrapper.eq(Objects.nonNull(noticesDTO.getType()),Notices::getType,noticesDTO.getType()); |
| | | // queryWrapper.eq(Objects.nonNull(noticesDTO.getMemberId()),Notices::getUserId,noticesDTO.getMemberId()); |
| | | queryWrapper.like(StringUtils.isNotBlank(noticesDTO.getTitle()),Notices::getTitle,noticesDTO.getTitle()); |
| | | queryWrapper.orderByDesc(Notices::getCreateDate); |
| | | queryWrapper.orderByDesc(Notices::getId); |
| | | PageData<Notices> pageData = PageData.from(noticesMapper.selectJoinPage(page,Notices.class, queryWrapper)); |
| | | if(noticesDTO.getQueryType().equals(Constants.ZERO)){ |
| | | for (Notices notices:pageData.getRecords()) { |