| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | |
| | | * @DATE: 2024/1/3 14:39 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = "白蚁普查") |
| | | @Api(tags = "堤防普查") |
| | | @RestController |
| | | @RequestMapping("/sjztmd/tbDykeInvestigation") |
| | | @AllArgsConstructor |
| | |
| | | @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); |
| | | } |
| | | |
| | |
| | | if (!StringUtil.isBlank(param.getDykeName())) |
| | | queryWrapper.like("\"dyke_name\"", param.getDykeName()); |
| | | if (!StringUtil.isBlank(param.getDykeGuid())) |
| | | queryWrapper.like("\"dyke_guid\"", param.getDykeGuid()); |
| | | queryWrapper.eq("\"dyke_guid\"", param.getDykeGuid()); |
| | | if (!StringUtil.isBlank(param.getCreateUser())) |
| | | queryWrapper.like("\"create_user\"", param.getCreateUser()); |
| | | queryWrapper.eq("\"create_user\"", param.getCreateUser()); |
| | | if (null != param.getTbYear()) |
| | | queryWrapper.like("\"tb_year\"", param.getTbYear()); |
| | | if (!StringUtil.isBlank(param.getTbQuarter())) |
| | |
| | | |
| | | @PostMapping("/remove") |
| | | @ApiOperation(value = "物理删除", notes = "传入id") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String id) { |
| | | return R.status(tbDykeInvestigationService.removeById(id)); |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | |
| | | // return R.status(tbDykeInvestigationService.removeBatchByIds(Arrays.asList(ids.split(",")))); |
| | | return R.status(tbDykeInvestigationService.removeByIds(Arrays.asList(ids.split(",")))); |
| | | } |
| | | |
| | | @PostMapping("/getInvestigationListByStateId") |