| | |
| | | package com.ruoyi.app.patrolplan.controller; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | |
| | | /** |
| | | * 根据巡检ID查询巡检人 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('app:appPatrolplan:userByPlanId')") |
| | | /*@PreAuthorize("@ss.hasPermi('app:appPatrolplan:userByPlanId')") |
| | | @GetMapping(value = "userByPlanId/{id}") |
| | | @ApiOperation("根据巡检ID查询巡检人") |
| | | public Results userByPlanId(@PathVariable String id) |
| | | { |
| | | return ardAppPatroluserService.userByPlanId(id); |
| | | } |
| | | }*/ |
| | | |
| | | /** |
| | | * 删除app巡检计划 |
| | |
| | | @Log(title = "app巡检计划", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation("删除app巡检计划") |
| | | public Results remove(@PathVariable String id) |
| | | //public Results remove(@PathVariable String id) |
| | | public AjaxResult remove(@PathVariable String id) |
| | | { |
| | | return ardAppPatrolplanService.deleteArdApp(id); |
| | | //return ardAppPatrolplanService.deleteArdApp(id); |
| | | return toAjax(ardAppPatrolplanService.deleteArdApp(id)); |
| | | } |
| | | |
| | | |
| | |
| | | return toAjax(ardAppPatrolplanService.updateArdAppPatrolplan(ardAppPatrolplan)); |
| | | } |
| | | |
| | | /** |
| | | * 新增app巡检计划及人员点位 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('app:appPatrolplan:insertArdAppPatrolplan')") |
| | | @Log(title = "app巡检计划", businessType = BusinessType.INSERT) |
| | | @PostMapping("/insertArdAppPatrolplan") |
| | | @ApiOperation("新增app巡检计划及人员点位") |
| | | public AjaxResult addArdAppPatrolplan(@RequestBody Map<String,Object> para) |
| | | { |
| | | return toAjax(ardAppPatrolplanService.insertArdAppPatrolplan(para)); |
| | | } |
| | | } |