| | |
| | | import cn.flightfeather.supervision.domain.entity.Company |
| | | import cn.flightfeather.supervision.domain.entity.PersonalInfo |
| | | import cn.flightfeather.supervision.domain.entity.SelfPatrolTask |
| | | import cn.flightfeather.supervision.domain.entity.UserSettingRecord |
| | | import cn.flightfeather.supervision.lightshare.service.AuthService |
| | | import cn.flightfeather.supervision.lightshare.service.SelfPatrolService |
| | | import cn.flightfeather.supervision.lightshare.vo.AuthSceneVo |
| | |
| | | @ApiParam("用户id") @RequestParam userId: String, |
| | | @ApiParam("应急自巡查任务id") @RequestParam(required = false) taskId: String?, |
| | | @ApiParam("自巡查信息json") @RequestParam("params") list: String, |
| | | @ApiParam("临时文件名和原始文件名称的对应列表") @RequestParam("fileNames", required = false) |
| | | fileNames: String?, |
| | | @ApiParam("自巡查图片") @RequestPart("images") files: Array<MultipartFile>, |
| | | ) = selfPatrolService.uploadSelfPatrol(userId, taskId, list, files) |
| | | ) = selfPatrolService.uploadSelfPatrol(userId, taskId, list,fileNames, files) |
| | | |
| | | @ApiOperation("上传不涉及自巡查") |
| | | @PostMapping("/task/record/upload/noInvolved") |
| | |
| | | fun getDetailList( |
| | | @ApiParam(value = "自寻查任务id") @RequestParam taskId: String, |
| | | ) = selfPatrolService.getDetailList(taskId) |
| | | |
| | | @ApiOperation("自巡查承诺") |
| | | @PostMapping("/promise") |
| | | fun promiseSelfPatrol( |
| | | @ApiParam(value = "用户id") @RequestParam userId: String, |
| | | ) = resPack { selfPatrolService.promiseSelfPatrol(userId) } |
| | | |
| | | |
| | | } |