5c6e48f0 康伟

kangwei: 风险点巡检时,点击开始巡检加属性

1 个父辈 dff1be60
......@@ -105,11 +105,12 @@ public class APPDangerInspectionController {
@AutoLog(value = "开始巡检-->开始巡检")
@ApiOperation(value="开始巡检-->开始巡检", notes="开始巡检-->开始巡检")
@GetMapping(value = "/startInspection")
public Result< DangerInspectionRecord > startInspection(@RequestParam(name="dangerId",required=true) String dangerId) {
public Result< DangerInspectionRecord > startInspection(@RequestParam(name="dangerId",required=true) String dangerId,String inspectionType) {
Result< DangerInspectionRecord > result = new Result< DangerInspectionRecord >();
//开始巡检,将风险点下的检查内容(检查项目)插入到巡检、巡检项目,并创建巡检记录
DangerInspectionRecord dangerInspection = inspectionRecordService.startInspection(dangerId,"1",BaseContextHandler.getUserId());
dangerInspection.setInspectionType(inspectionType);
if(dangerInspection==null) {
result.error500("未找到对应实体");
}else {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!