| | |
| | | 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"); |