From 5e113d775e0143f3ad86e8122aac8015b5d78f1e Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期六, 28 十月 2023 18:21:48 +0800 Subject: [PATCH] 三保 授权 二保 移交单修改 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/PrecisionInspectionController.java | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/PrecisionInspectionController.java b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/PrecisionInspectionController.java index 40e49fd..797eb38 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/PrecisionInspectionController.java +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/PrecisionInspectionController.java @@ -13,10 +13,7 @@ import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.vo.LoginUser; import org.jeecg.modules.eam.entity.*; -import org.jeecg.modules.eam.service.IDailyMaintenanceOrderService; -import org.jeecg.modules.eam.service.IPrecisionInspectionDetailService; -import org.jeecg.modules.eam.service.IPrecisionInspectionService; -import org.jeecg.modules.eam.service.IPrecisionParametersService; +import org.jeecg.modules.eam.service.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.ModelAndView; @@ -49,6 +46,9 @@ @Autowired private IPrecisionParametersService precisionParametersService; + + @Autowired + private IEamEquipmentService equipmentService; /** * 鍒嗛〉鍒楄〃鏌ヨ @@ -205,6 +205,7 @@ PrecisionInspection preInspection = precisionInspectionService.getById(precisionInspection.getId()); DailyMaintenanceOrder maintenanceOrder = dailyMaintenanceOrderService.getById(preInspection.getMaintenanceOrderId()); + Equipment equipment = equipmentService.getById(maintenanceOrder.getEquipmentId()); String precisionInspectionStatus = maintenanceOrder.getPrecisionInspectionStatus(); if ("0".equals(precisionInspectionStatus)){ @@ -238,12 +239,14 @@ maintenanceOrder.setPrecisionInspectionStatus("5"); // maintenanceOrder.setStatus("8"); + //鏇存柊璁惧鎶�鏈姸鎬� + equipment.setTechnologyStatus(precisionInspection.getJudgmentResult()); } preInspection.setRemark(precisionInspection.getRemark()); dailyMaintenanceOrderService.updateById(maintenanceOrder); precisionInspectionService.updateById(preInspection); - + equipmentService.updateById(equipment); return Result.OK("瀹℃壒鎴愬姛!"); } -- Gitblit v1.9.3