| | |
| | | * @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(patrolRecordService.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(patrolRecordService.removeByIds(Arrays.asList(ids.split(",")))); |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 通过itemIds查询 |
| | | * 通过itemIds查询(用于巡查上报时的回显) |
| | | * |
| | | * @return |
| | | */ |
| | |
| | | return R.data(list); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 通过任务id和组id获取记录表中的数据,用于数据回显 |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping(value = "/getByTaskIdAndGroupId") |
| | | public R getByTaskIdAndGroupId(String groupId,String taskId){ |
| | | List<PatrolRecord> list = patrolRecordService.getByTaskIdAndGroupId(groupId,taskId); |
| | | return R.data(list); |
| | | } |
| | | } |