From 2a64b537e8e3bce9ce030585a3da17d48379c0ad Mon Sep 17 00:00:00 2001
From: sfd <sun.sunshine@163.com>
Date: 星期一, 26 五月 2025 15:04:45 +0800
Subject: [PATCH] 修改json类型转换错误

---
 aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipingPlanServiceImpl.java |    6 ++++++
 1 files changed, 6 insertions(+), 0 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 be8a04b..dcec12f 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;
@@ -14,6 +15,7 @@
 import com.aps.core.mapper.ApsGasPipingPlanMapper;
 import com.aps.core.domain.ApsGasPipingPlan;
 import com.aps.core.service.IApsGasPipingPlanService;
+import org.springframework.transaction.annotation.Transactional;
 
 /**
  * 姘斾綋绠¤矾璁″垝绠$悊Service涓氬姟灞傚鐞�
@@ -63,6 +65,7 @@
     public int insertApsGasPipingPlan(ApsGasPipingPlan apsGasPipingPlan)
     {
         apsGasPipingPlan.setId(IdUtils.fastUUID());
+        apsGasPipingPlan.setCreateTime(DateUtils.getNowDate());
         return apsGasPipingPlanMapper.insertApsGasPipingPlan(apsGasPipingPlan);
     }
 
@@ -102,8 +105,11 @@
         return apsGasPipingPlanMapper.deleteApsGasPipingPlanById(id);
     }
 
+    @Transactional
     @Override
     public int confirmGasPiping(ApsGasPipingPlanTemp apsGasPipingPlanTemp) {
+        //鍒犻櫎鎵�鏈夎鍒�
+        apsGasPipingPlanMapper.removeAllPlans();
         //鏌ヨ涓存椂琛ㄦ暟鎹�
         List<ApsGasPipingPlanTemp> apsGasPipingPlanTemps=apsGasPipingPlanTempMapper.selectApsGasPipingPlanTempList(apsGasPipingPlanTemp);
         int count=0;

--
Gitblit v1.9.3