| | |
| | | package com.ruoyi.app.patrolplan.controller; |
| | | |
| | | import java.text.ParseException; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import javax.annotation.Resource; |
| | |
| | | import com.ruoyi.alarmpoints.well.domain.ArdAlarmpointsWell; |
| | | import com.ruoyi.alarmpoints.well.service.IArdAlarmpointsWellService; |
| | | import com.ruoyi.app.patrolplan.domain.ArdAppPatrolpoint; |
| | | import com.ruoyi.app.patrolplan.domain.ArdAppPatrolpointRecord; |
| | | import com.ruoyi.app.patrolplan.domain.param.ArdAppPatrolpointRecordParam; |
| | | import com.ruoyi.app.patrolplan.service.IArdAppPatrolpointRecordService; |
| | | import com.ruoyi.app.patrolplan.service.IArdAppPatrolpointService; |
| | | import com.ruoyi.app.patrolplan.service.IArdAppPatroluserService; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | |
| | | @Resource |
| | | IArdAlarmpointsWellService wellService; |
| | | |
| | | @Resource |
| | | IArdAppPatrolpointRecordService recordService; |
| | | |
| | | /** |
| | | * 查询app巡检计划列表 |
| | | */ |
| | |
| | | @ApiOperation("查询全部巡检列表及搜索筛选") |
| | | public Results list(ArdAppPatrolplan ardAppPatrolplan) |
| | | { |
| | | String userId = SecurityUtils.getUserId(); |
| | | ardAppPatrolplan.setUserId(userId); |
| | | if(ardAppPatrolplan.getPageNum()==null || ardAppPatrolplan.getPageNum() == 0){ |
| | | ardAppPatrolplan.setPageNum(1); |
| | | } |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('app:appPatrolplan:edit')") |
| | | @Log(title = "app巡检计划", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdAppPatrolplan ardAppPatrolplan) |
| | | @ApiOperation("修改单条数据") |
| | | @PutMapping("upd") |
| | | public Results edit(@RequestBody Map<String,Object> para) |
| | | { |
| | | return toAjax(ardAppPatrolplanService.updateArdAppPatrolplan(ardAppPatrolplan)); |
| | | return ardAppPatrolplanService.updateArdAppPatrolplan(para); |
| | | } |
| | | |
| | | /** |
| | | * 巡检打卡 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('app:appPatrolplan:record')") |
| | | @ApiOperation("巡检打卡") |
| | | @PostMapping("record") |
| | | public Results edit(@RequestBody ArdAppPatrolpointRecord ardAppPatrolpointRecord) { |
| | | return recordService.record(ardAppPatrolpointRecord); |
| | | } |
| | | |
| | | /** |
| | | * 巡检日历 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('app:appPatrolplan:recordMonth')") |
| | | @ApiOperation("管理端--巡检日历") |
| | | @PostMapping("recordMonth") |
| | | public Results recordMonth(@RequestBody ArdAppPatrolpointRecordParam ardAppPatrolpointRecordParam) throws ParseException { |
| | | return recordService.recordMonth(ardAppPatrolpointRecordParam); |
| | | } |
| | | |
| | | /** |
| | | * 巡检日历 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('app:appPatrolplan:recordMonth')") |
| | | @ApiOperation("管理端--点击日历获取该记录下人员打卡记录") |
| | | @PostMapping("recordDetails") |
| | | public Results recordDetails(@RequestBody ArdAppPatrolpointRecordParam ardAppPatrolpointRecordParam) throws ParseException { |
| | | return recordService.recordDetails(ardAppPatrolpointRecordParam); |
| | | } |
| | | |
| | | } |