| | |
| | | import cn.gistack.sm.sjztmd.service.IAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbResGeneralInvestigationService; |
| | | import cn.gistack.sm.sjztmd.vo.AttResBaseGeneralInvestigationVO; |
| | | import cn.gistack.sm.sjztmd.vo.TbResGeneralInvestigationParam; |
| | | import cn.gistack.sm.sjztmd.wrapper.AttResBaseWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | return tbResGeneralInvestigationService.saveOrUpdateBy(tbResGeneralInvestigation); |
| | | } |
| | | |
| | | @ApiOperation(value = "白蚁普查-添加或者修改", notes = "白蚁普查-添加或者修改") |
| | | @PostMapping(value = "/submitBatch") |
| | | public R submit(@RequestBody TbResGeneralInvestigationParam tbResGeneralInvestigationParam) { |
| | | |
| | | return tbResGeneralInvestigationService.saveOrUpdateByBatch(tbResGeneralInvestigationParam); |
| | | } |
| | | |
| | | @PostMapping("/remove") |
| | | @ApiOperation(value = "物理删除", notes = "传入id") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String id) { |
| | | return R.status(tbResGeneralInvestigationService.removeById(id)); |
| | | } |
| | | |
| | | @PostMapping("/getInvestigationListByStateId") |
| | | @ApiOperation(value = "根据状态id获取普查集合", notes = "传入id") |
| | | public R getInvestigationListByStateId(String stateId){ |
| | | QueryWrapper queryWrapper = new QueryWrapper(); |
| | | queryWrapper.eq("\"tb_state_id\"",stateId); |
| | | |
| | | List<TbResGeneralInvestigation> list = tbResGeneralInvestigationService.list(queryWrapper); |
| | | return R.data(list); |
| | | } |
| | | |
| | | } |