| | |
| | | private WorkAlarmService workAlarmService; |
| | | |
| | | @GetMapping("/searchAllByUserIdAndStatus") |
| | | @ApiOperation(value = "查询维护员告警列表") |
| | | @ApiOperation(value = "查询维护员告警列表", notes = "旧:UserWorkAction!searchAllByUserIdAndStatus") |
| | | public Response searchAllByUserIdAndStatus(int pageNum,int pageSize,@RequestParam(required = false) Integer note){ |
| | | UserInf user = ActionUtil.getUser(); |
| | | return workAlarmService.searchByUserIdAndStatus(pageNum,pageSize,user.getUId().intValue(),note); |
| | | } |
| | | |
| | | @PostMapping("/updateWorkAlarm") |
| | | @ApiOperation(value = "更新工单告警") |
| | | @ApiOperation(value = "更新工单告警", notes = " 旧:UserWorkAction!updateWorkAlarm") |
| | | public Response updateWorkAlarm(@RequestBody WorkAlarm workAlarm){ |
| | | return workAlarmService.updateWorkAlarm(workAlarm); |
| | | } |
| | | |
| | | @GetMapping("/searchStatusById") |
| | | @ApiOperation("通过id获取告警状态数据") |
| | | @ApiOperation(value = "通过id获取告警状态数据(开始处理更新状态)", notes = "旧 UserWorkAction!searchStatusById") |
| | | public Response searchStatusById(int id){ |
| | | return workAlarmService.searchById(id); |
| | | } |
| | | |
| | | @PostMapping("/uploadAlarmFile") |
| | | @ApiOperation("上传图片") |
| | | @ApiImplicitParam(name = "file", value = "上传的文件", dataTypeClass = MultipartFile.class, required = true,paramType = "form") |
| | | public Response uploadAlarmFile(@RequestPart("file") List<MultipartFile> file, @RequestParam String json){ |
| | | @ApiOperation(value = "上传图片", notes = " 旧:MyFileAction!uploadAlarmFile") |
| | | @ApiImplicitParam(name = "file", value = "上传的文件", dataTypeClass = MultipartFile.class, required = true, paramType = "form") |
| | | public Response uploadAlarmFile(@RequestPart("file") List<MultipartFile> file, @RequestParam String json) { |
| | | Gson gson = new Gson(); |
| | | UserWorkAlarmParam alarmParam = gson.fromJson(json,UserWorkAlarmParam.class); |
| | | return userWorkService.uploadAlarmFile(file,alarmParam); |
| | | UserWorkAlarmParam alarmParam = gson.fromJson(json, UserWorkAlarmParam.class); |
| | | return userWorkService.uploadAlarmFile(file, alarmParam); |
| | | } |
| | | |
| | | @GetMapping("/deleteAlarmFile") |
| | | @ApiOperation(value = "删除图片", notes = " 旧:MyFileAction!deleteAlarmFile") |
| | | public Response deleteAlarmFile(@RequestParam String fileNames, @RequestParam int stationId, @RequestParam String afterOrBefore) { |
| | | return userWorkService.deleteAlarmFile(fileNames, stationId, afterOrBefore); |
| | | } |
| | | |
| | | @PostMapping("/updateUserWork") |
| | | @ApiOperation("更新告警处理") |
| | | public Response updateUserWork(@RequestBody UserWork userWork){ |
| | | @ApiOperation(value = "更新告警处理", notes = "旧:UserWorkAction!updateUserWork") |
| | | public Response updateUserWork(@RequestBody UserWork userWork) { |
| | | return userWorkService.addOrUpdate(userWork); |
| | | } |
| | | |
| | | @PostMapping("/serchByCondition") |
| | | @ApiOperation("查询告警处理详情") |
| | | public Response serchByCondition(@RequestBody UserWork userWork){ |
| | | @ApiOperation(value = "查询告警处理详情", notes = "旧:UserWorkAction!serchByCondition") |
| | | public Response serchByCondition(@RequestBody UserWork userWork) { |
| | | return userWorkService.searchByCondition(userWork); |
| | | } |
| | | |
| | | @GetMapping("getTaskListWithFlag") |
| | | @ApiOperation("查询管理员告警列表") |
| | | public Response getTaskListWithFlag(@RequestParam Integer note,@RequestParam int pageNum,@RequestParam int pageSize){ |
| | | @ApiOperation(value = "查询管理员告警列表", notes = "旧:WorkAlarmAction!getTaskListWithFlag") |
| | | public Response getTaskListWithFlag(@RequestParam Integer note, @RequestParam int pageNum, @RequestParam int pageSize) { |
| | | UserInf userInf = ActionUtil.getUser(); |
| | | return workAlarmService.getTaskListWithFlag(userInf.getUId().intValue(),note,pageNum,pageSize); |
| | | return workAlarmService.getTaskListWithFlag(userInf.getUId().intValue(), note, pageNum, pageSize); |
| | | } |
| | | |
| | | @GetMapping("getTaskListWithFlagNew") |
| | | @ApiOperation(value = "查询管理员告警列表2.0页面", notes = "旧:WorkAlarmAction!getTaskListWithFlag") |
| | | public Response getTaskListWithFlagNew(@RequestParam Integer note, @RequestParam int pageNum, @RequestParam int pageSize) { |
| | | UserInf userInf = ActionUtil.getUser(); |
| | | return workAlarmService.getTaskListWithFlagNew(userInf.getUId().intValue(), note, pageNum, pageSize); |
| | | } |
| | | |
| | | @PostMapping("/dispatchTask") |
| | | @ApiOperation("确认指派任务订单") |
| | | public Response dispatchTask(@RequestBody List<WorkAlarm> alarmList){ |
| | | @ApiOperation(value = "确认指派任务订单", notes = "旧:WorkAlarmAction!dispatchTask") |
| | | public Response dispatchTask(@RequestBody List<WorkAlarm> alarmList) { |
| | | return workAlarmService.dispatchTask(alarmList); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |