From faafd7295f73246a4ff5895e9fdf79deb543f35d Mon Sep 17 00:00:00 2001 From: bluejay <253316343@qq.com> Date: 星期一, 14 四月 2025 13:07:49 +0800 Subject: [PATCH] 零件工单计划:上传后删除旧的计划数据 --- aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipingPlanServiceImpl.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipingPlanServiceImpl.java b/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipingPlanServiceImpl.java index 06b97cd..26ed8e3 100644 --- a/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipingPlanServiceImpl.java +++ b/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipingPlanServiceImpl.java @@ -2,6 +2,7 @@ import java.util.List; +import com.aps.common.core.utils.DateUtils; import com.aps.common.core.utils.uuid.IdUtils; import com.aps.core.domain.ApsGasPipingPlanTemp; import com.aps.core.domain.ApsPartPlan; @@ -63,6 +64,7 @@ public int insertApsGasPipingPlan(ApsGasPipingPlan apsGasPipingPlan) { apsGasPipingPlan.setId(IdUtils.fastUUID()); + apsGasPipingPlan.setCreateTime(DateUtils.getNowDate()); return apsGasPipingPlanMapper.insertApsGasPipingPlan(apsGasPipingPlan); } @@ -122,6 +124,6 @@ if (count==apsGasPipingPlanTemps.size()) { apsGasPipingPlanTempMapper.deleteApsGasPipingPlanTempByIds(ids); } - return 0; + return 1; } } -- Gitblit v1.9.3