kangwei: 风险点巡检时,点击开始巡检加属性
正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
... | @@ -105,11 +105,12 @@ public class APPDangerInspectionController { | ... | @@ -105,11 +105,12 @@ public class APPDangerInspectionController { |
105 | @AutoLog(value = "开始巡检-->开始巡检") | 105 | @AutoLog(value = "开始巡检-->开始巡检") |
106 | @ApiOperation(value="开始巡检-->开始巡检", notes="开始巡检-->开始巡检") | 106 | @ApiOperation(value="开始巡检-->开始巡检", notes="开始巡检-->开始巡检") |
107 | @GetMapping(value = "/startInspection") | 107 | @GetMapping(value = "/startInspection") |
108 | public Result< DangerInspectionRecord > startInspection(@RequestParam(name="dangerId",required=true) String dangerId) { | 108 | public Result< DangerInspectionRecord > startInspection(@RequestParam(name="dangerId",required=true) String dangerId,String inspectionType) { |
109 | Result< DangerInspectionRecord > result = new Result< DangerInspectionRecord >(); | 109 | Result< DangerInspectionRecord > result = new Result< DangerInspectionRecord >(); |
110 | 110 | ||
111 | //开始巡检,将风险点下的检查内容(检查项目)插入到巡检、巡检项目,并创建巡检记录 | 111 | //开始巡检,将风险点下的检查内容(检查项目)插入到巡检、巡检项目,并创建巡检记录 |
112 | DangerInspectionRecord dangerInspection = inspectionRecordService.startInspection(dangerId,"1",BaseContextHandler.getUserId()); | 112 | DangerInspectionRecord dangerInspection = inspectionRecordService.startInspection(dangerId,"1",BaseContextHandler.getUserId()); |
113 | dangerInspection.setInspectionType(inspectionType); | ||
113 | if(dangerInspection==null) { | 114 | if(dangerInspection==null) { |
114 | result.error500("未找到对应实体"); | 115 | result.error500("未找到对应实体"); |
115 | }else { | 116 | }else { | ... | ... |
-
请 注册 或 登录 后发表评论