| | |
| | | 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)); |
| | | } |
| | | } |