| | |
| | | */ |
| | | @Override |
| | | public R queryByPage(PageComPbCheckUnitDto comPbCheckUnit) { |
| | | return R.ok(this.baseMapper.queryAllByLimit(comPbCheckUnit, new Page(comPbCheckUnit.getPageNum(), comPbCheckUnit.getPageSize()))); |
| | | IPage<ComPbCheckUnitVo> checkUnitVoIPage = this.baseMapper.queryAllByLimit(comPbCheckUnit, new Page(comPbCheckUnit.getPageNum(), comPbCheckUnit.getPageSize())); |
| | | checkUnitVoIPage.getRecords().forEach(checkUnit -> { |
| | | if(StringUtils.isEmpty(checkUnit.getOrgName())){ |
| | | checkUnit.setOrgName("待编辑党支部"); |
| | | } |
| | | }); |
| | | return R.ok(checkUnitVoIPage); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public R queryByList(PageComPbCheckUnitDto comPbCheckUnit) { |
| | | return R.ok(this.baseMapper.queryAllByList(comPbCheckUnit)); |
| | | List<ComPbCheckUnitVo> checkUnitList = this.baseMapper.queryAllByList(comPbCheckUnit); |
| | | checkUnitList.forEach(checkUnit -> { |
| | | if(StringUtils.isEmpty(checkUnit.getOrgName())){ |
| | | checkUnit.setOrgName("待编辑党支部"); |
| | | } |
| | | }); |
| | | return R.ok(checkUnitList); |
| | | } |
| | | |
| | | /** |