| | |
| | | public R getPatrolGroupTree() { |
| | | return R.data(patrolGroupService.getPatrolGroupTree()); |
| | | } |
| | | |
| | | /** |
| | | * 根据项id查询组id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "根据项id查询组id", notes = "根据项id查询组id") |
| | | @GetMapping(value = "/getPatrolGroupByItemId") |
| | | public R getPatrolGroupByItemId(String itemIds) { |
| | | return R.data(patrolGroupService.getPatrolGroupByItemId(itemIds)); |
| | | } |
| | | |
| | | /** |
| | | * 根据任务id获取巡查项,可判断是否已选 |
| | | */ |
| | | @GetMapping(value = "/getAllPatrolGroupByTaskId") |
| | | public R getAllPatrolGroupByTaskId(String taskId) { |
| | | return R.data(patrolGroupService.getAllPatrolGroupByTaskId(taskId)); |
| | | } |
| | | |
| | | /** |
| | | * 根据任务id获取巡查组,返回组下的record |
| | | */ |
| | | @GetMapping(value = "/getPatrolGroupDTO") |
| | | public R getPatrolGroupDTO(String taskId) { |
| | | return R.data(patrolGroupService.getPatrolGroupDTO(taskId)); |
| | | } |
| | | |
| | | /** |
| | | * 根据任务id获取巡查组 |
| | | */ |
| | | @GetMapping(value = "/getPatrolGroupByTaskId") |
| | | public R getPatrolGroupByTaskId(String taskId) { |
| | | return R.data(patrolGroupService.getPatrolGroupByTaskId(taskId)); |
| | | } |
| | | } |