| | |
| | | IArdAppPatrolpointRecordService recordService; |
| | | |
| | | /** |
| | | * 查询app巡检计划列表 |
| | | * 管理端--查询app巡检计划列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('app:appPatrolplan:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation("查询全部巡检列表及搜索筛选") |
| | | @ApiOperation("管理端--查询全部巡检列表及搜索筛选") |
| | | public Results list(ArdAppPatrolplan ardAppPatrolplan) |
| | | { |
| | | String userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 导出app巡检计划列表 |
| | | * 管理端--导出app巡检计划列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('app:appPatrolplan:export')") |
| | | @Log(title = "app巡检计划", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation("导出全部巡检列表") |
| | | @ApiOperation("管理端--导出全部巡检列表") |
| | | public void export(HttpServletResponse response, ArdAppPatrolplan ardAppPatrolplan) |
| | | { |
| | | List<ArdAppPatrolplan> list = ardAppPatrolplanService.selectArdAppPatrolplanList(ardAppPatrolplan); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除app巡检计划 |
| | | * 管理端--删除app巡检计划 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('app:appPatrolplan:remove')") |
| | | @Log(title = "app巡检计划", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation("删除app巡检计划") |
| | | @ApiOperation("管理端--删除app巡检计划") |
| | | //public Results remove(@PathVariable String id) |
| | | public AjaxResult remove(@PathVariable String id) |
| | | { |
| | |
| | | } |
| | | |
| | | /** |
| | | * 新增app巡检计划及人员点位 |
| | | * 管理端--新增app巡检计划及人员点位 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('app:appPatrolplan:insertArdAppPatrolplan')") |
| | | @Log(title = "app巡检计划", businessType = BusinessType.INSERT) |
| | | @PostMapping("/insertArdAppPatrolplan") |
| | | @ApiOperation("新增app巡检计划及人员点位") |
| | | @ApiOperation("管理端--新增app巡检计划及人员点位") |
| | | public AjaxResult addArdAppPatrolplan(@RequestBody Map<String,Object> para) |
| | | { |
| | | return toAjax(ardAppPatrolplanService.insertArdAppPatrolplan(para)); |
| | | } |
| | | |
| | | /** |
| | | * 查询单条数据 |
| | | * 管理端--查询单条数据 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('app:appPatrolplan:oneById')") |
| | | @PostMapping("/oneById/{id}") |
| | | @ApiOperation("查询单条数据") |
| | | @ApiOperation("管理端--查询单条数据") |
| | | public Results oneById(@PathVariable String id) |
| | | { |
| | | return ardAppPatrolplanService.oneById(id); |
| | | } |
| | | |
| | | /** |
| | | * 修改app巡检计划 |
| | | * 管理端--修改app巡检计划 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('app:appPatrolplan:edit')") |
| | | @Log(title = "app巡检计划", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("修改单条数据") |
| | | @ApiOperation("管理端--修改单条数据") |
| | | @PutMapping("upd") |
| | | public Results edit(@RequestBody Map<String,Object> para) |
| | | { |
| | |
| | | public Results recordSolo(@RequestBody ArdAppPatrolpointRecordParam ardAppPatrolpointRecordParam) throws ParseException { |
| | | return recordService.recordSolo(ardAppPatrolpointRecordParam); |
| | | } |
| | | |
| | | /** |
| | | * 单兵端--查询app巡检计划列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('app:appPatrolplan:executeList')") |
| | | @GetMapping("/executeList") |
| | | @ApiOperation("单兵端--查询该用户下所有执行计划及搜索筛选") |
| | | public Results executeList(ArdAppPatrolplan ardAppPatrolplan) |
| | | { |
| | | String userId = SecurityUtils.getUserId(); |
| | | ardAppPatrolplan.setUserId(userId); |
| | | if(ardAppPatrolplan.getPageNum()==null || ardAppPatrolplan.getPageNum() == 0){ |
| | | ardAppPatrolplan.setPageNum(1); |
| | | } |
| | | if(ardAppPatrolplan.getPageSize()==null || ardAppPatrolplan.getPageSize() == 0){ |
| | | ardAppPatrolplan.setPageSize(10); |
| | | } |
| | | PageHelper.startPage(ardAppPatrolplan.getPageNum(),ardAppPatrolplan.getPageSize()); |
| | | List<ArdAppPatrolplan> list = ardAppPatrolplanService.executeList(ardAppPatrolplan); |
| | | return Results.succeed(new PageInfo<>(list)); |
| | | } |
| | | } |