| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="巡查指标项目-通过id删除", notes="巡查指标项目-通过id删除") |
| | | @DeleteMapping(value = "/delete") |
| | | @PostMapping(value = "/delete") |
| | | public R delete(@RequestParam(name="id",required=true) String id) { |
| | | return R.data(patrolGroupItemService.removeById(id)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="巡查指标项目-批量删除", notes="巡查指标项目-批量删除") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | @PostMapping(value = "/deleteBatch") |
| | | public R deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | return R.data(patrolGroupItemService.removeByIds(Arrays.asList(ids.split(",")))); |
| | | } |
| | |
| | | return R.data(patrolGroupItem); |
| | | } |
| | | |
| | | /** |
| | | * 通过itemIds查询 |
| | | * |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="巡查指标项目-通过itemIds查询", notes="巡查指标项目-通过itemIds查询") |
| | | @GetMapping(value = "/getItemByItemIds") |
| | | public R getItemByItemIds(String itemIds,String groupId){ |
| | | List<PatrolGroupItem> list = patrolGroupItemService.getItemByItemIds(itemIds,groupId); |
| | | return R.data(list); |
| | | } |
| | | |
| | | |
| | | } |