From 04ef88cee361ec8730c400d96250a6c1cd9f9d80 Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期五, 08 九月 2023 16:23:47 +0800 Subject: [PATCH] 设备台账 1.ABC标识变更记录功能 2.质保日期变更记录功能 3.质保到期提醒 4.ABC标识与关键设备标识联动 5.设备质保期字段添加 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionCycleController.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionCycleController.java b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionCycleController.java index 1e7c08a..6dc727a 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionCycleController.java +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionCycleController.java @@ -348,6 +348,8 @@ inspectionCycle.setCreateTime(new Date()); inspectionCycle.setUpdateBy(null); inspectionCycle.setUpdateTime(null); + inspectionCycle.setLoseEfficacyTime(null); + inspectionCycle.setTakeEffectTime(null); boolean b = inspectionCycleService.save(inspectionCycle); if(b){ return Result.OK("鐗堟湰鍗囩骇鎴愬姛锛�"); @@ -382,8 +384,10 @@ List<InspectionCycle> list = inspectionCycleService.lambdaQuery().eq(InspectionCycle::getCode, inspectionCycle.getCode()).eq(InspectionCycle::getVersionStatus, "2").list(); for (InspectionCycle cycle : list) { cycle.setVersionStatus("3"); + cycle.setLoseEfficacyTime(new Date()); inspectionCycleService.updateById(cycle); } + inspectionCycle.setTakeEffectTime(new Date()); boolean b = inspectionCycleService.updateById(inspectionCycle); if (b){ return Result.OK("缂栬緫鎴愬姛!"); -- Gitblit v1.9.3