| | |
| | | @ApiOperation(value = "中台水库-分页列表查询", notes = "中台水库-分页列表查询") |
| | | @GetMapping(value = "/queryPageResList") |
| | | public R queryPageResList(AttResBaseGeneralInvestigationVO attResBase, Query query) { |
| | | IPage<AttResBaseGeneralInvestigationVO> pageList = attResBaseService.selectAttResBaseGeneralInvestigation(Condition.getPage(query), attResBase); |
| | | Object pageList = attResBaseService.selectAttResBaseGeneralInvestigation(Condition.getPage(query), attResBase); |
| | | return R.data(pageList); |
| | | } |
| | | |
| | |
| | | @PostMapping("/remove") |
| | | @ApiOperation(value = "物理删除", notes = "传入id") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | return R.status(tbDykeInvestigationService.removeBatchByIds(Arrays.asList(ids))); |
| | | |
| | | // return R.status(tbDykeInvestigationService.removeBatchByIds(Arrays.asList(ids.split(",")))); |
| | | return R.status(tbDykeInvestigationService.removeByIds(Arrays.asList(ids.split(",")))); |
| | | } |
| | | |
| | | @PostMapping("/getInvestigationListByStateId") |
| | |
| | | @ApiOperation(value = "中台水库-分页列表查询", notes = "中台水库-分页列表查询") |
| | | @GetMapping(value = "/queryPageResList") |
| | | public R queryPageResList(AttResBaseGeneralInvestigationVO attResBase, Query query) { |
| | | IPage<AttResBaseGeneralInvestigationVO> pageList = attResBaseService.selectAttResBaseGeneralInvestigation(Condition.getPage(query), attResBase); |
| | | Object pageList = attResBaseService.selectAttResBaseGeneralInvestigation(Condition.getPage(query), attResBase); |
| | | return R.data(pageList); |
| | | } |
| | | |
| | |
| | | @PostMapping("/remove") |
| | | @ApiOperation(value = "物理删除", notes = "传入id") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | return R.status(tbResGeneralInvestigationService.removeBatchByIds(Arrays.asList(ids))); |
| | | // return R.status(tbResGeneralInvestigationService.removeBatchByIds(Arrays.asList(ids.split(",")))); |
| | | return R.status(tbResGeneralInvestigationService.removeByIds(Arrays.asList(ids.split(",")))); |
| | | } |
| | | |
| | | @PostMapping("/getInvestigationListByStateId") |
| | |
| | | |
| | | IPage<AttResBase> selectAttResBasePage(IPage<AttResBase> page, AttResBase attResBase); |
| | | |
| | | IPage<AttResBaseGeneralInvestigationVO> selectAttResBaseGeneralInvestigation(IPage<AttResBaseGeneralInvestigationVO> page, AttResBaseGeneralInvestigationVO attResBase); |
| | | Object selectAttResBaseGeneralInvestigation(IPage<AttResBaseGeneralInvestigationVO> page, AttResBaseGeneralInvestigationVO attResBase); |
| | | |
| | | IPage<AttResBase> getListByRegion(IPage<AttResBase> page,Map<String, Object> obj); |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public IPage<AttResBaseGeneralInvestigationVO> selectAttResBaseGeneralInvestigation(IPage<AttResBaseGeneralInvestigationVO> page, AttResBaseGeneralInvestigationVO attResBase) { |
| | | return page.setRecords(baseMapper.selectAttResBaseGeneralInvestigation(page,attResBase)); |
| | | public Object selectAttResBaseGeneralInvestigation(IPage<AttResBaseGeneralInvestigationVO> page, AttResBaseGeneralInvestigationVO attResBase) { |
| | | |
| | | if (attResBase.getIsPage()){ |
| | | return page.setRecords(baseMapper.selectAttResBaseGeneralInvestigation(page,attResBase)); |
| | | }else { |
| | | return baseMapper.selectAttResBaseGeneralInvestigation(null,attResBase); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | @Override |
| | | public IPage<TbResDykeVO> findTbResDykePcBy(IPage<TbResDykeVO> page, TbResDykeVO tbResDykeVO) { |
| | | return page.setRecords(baseMapper.findTbResDykePcBy(page,tbResDykeVO)); |
| | | if (tbResDykeVO.getIsPage()){ |
| | | return page.setRecords(baseMapper.findTbResDykePcBy(page,tbResDykeVO)); |
| | | }else { |
| | | return page.setRecords(baseMapper.findTbResDykePcBy(null,tbResDykeVO)); |
| | | } |
| | | } |
| | | } |
| | |
| | | //其他危害处数 |
| | | private int otherNum; |
| | | |
| | | |
| | | private Boolean isPage; |
| | | |
| | | } |