| | |
| | | return vo; |
| | | } |
| | | |
| | | public IPage<AttResBaseGeneralInvestigationVO> pageVO(IPage<AttResBase> pages) { |
| | | List<AttResBaseGeneralInvestigationVO> records = listVO(pages.getRecords()); |
| | | |
| | | for (AttResBaseGeneralInvestigationVO vo:records) { |
| | | QueryWrapper queryWrapper = new QueryWrapper(); |
| | | queryWrapper.eq("\"res_guid\"",vo.getGuid()); |
| | | queryWrapper.ne("\"check_state\"", 0); |
| | | long tbCount = tbResGeneralInvestigationService.count(queryWrapper); |
| | | vo.setIsSb(tbCount > 0); |
| | | } |
| | | |
| | | IPage<AttResBaseGeneralInvestigationVO> pageVo = new Page<>(pages.getCurrent(), pages.getSize(), pages.getTotal()); |
| | | pageVo.setRecords(records); |
| | | return pageVo; |
| | | } |
| | | } |