diff --git a/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/controller/AbnormalBillController.java b/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/controller/AbnormalBillController.java index ca439de2..aa5a6acf 100644 --- a/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/controller/AbnormalBillController.java +++ b/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/controller/AbnormalBillController.java @@ -352,7 +352,6 @@ public class AbnormalBillController { return R.ok(abnormalBillService.anomalyReveseRepair(abnormalBill,abnormalBillDispose)); } - @GetMapping("/findNcCodeDescriptionByNcCode") public R findNcCodeDescriptionByNcCode(String ncCode){ return R.ok(ncCodeService.findNcCodeDescriptionByNcCode(ncCode)); diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceInspectPlanServiceImpl.java b/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceInspectPlanServiceImpl.java index 8aff0f5a..6114482e 100644 --- a/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceInspectPlanServiceImpl.java +++ b/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceInspectPlanServiceImpl.java @@ -106,6 +106,12 @@ public class ResourceInspectPlanServiceImpl extends ServiceImpl resourceInspectTasks = resourceInspectTaskService.selectList(resourceInspectTask); + if (!planHandle.getScheduleType().equals(resourceInspectPlan.getScheduleType()) && resourceInspectTasks.size() > 0){ + throw BusinessException.build("已创建任务的点检计划,不能修改排程方式!"); + } // 保留创建人员和创建时间 String createUser = planHandle.getCreateUser(); LocalDateTime createdDateTime = planHandle.getCreatedDateTime(); @@ -300,6 +306,9 @@ public class ResourceInspectPlanServiceImpl extends ServiceImpl SELECT * FROM WIP.Z_RESOURCE_INSPECT_TASK ZRIT WHERE ZRIT.SITE = #{site} - AND ZRIT.RESOURCE_INSPECT_PLAN_BO = #{resourceInspectPlanBo} - AND ZRIT.RESRCE = #{resrce} - AND ZRIT.STATUS IN ('DOING','NEW') + AND ZRIT.STATUS IN ('DOING','NEW') + + AND ZRIT.RESOURCE_INSPECT_PLAN_BO = #{resourceInspectPlanBo} + + + AND ZRIT.resrce = #{resrce} +