From 7db00983572bc69b90f61708797307050cc2063b Mon Sep 17 00:00:00 2001
From: XMnhwj_BackTechnologyDevelopment <3512363680@qq.com>
Date: Tue, 30 May 2023 14:28:27 +0800
Subject: [PATCH] =?UTF-8?q?2023-05-30=2014:07:36=20=E4=BC=98=E5=8C=96?=
=?UTF-8?q?=E5=AE=8C=E5=96=84=E8=8E=B7=E5=8F=96=E8=AE=BE=E5=A4=87=E7=8A=B6?=
=?UTF-8?q?=E6=80=81=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3=EF=BC=8C=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=E8=AE=BE=E5=A4=87=E5=BD=93=E5=89=8D=E5=AE=9E=E6=97=B6?=
=?UTF-8?q?=E6=B8=A9=E5=BA=A6=E6=95=B0=E6=8D=AE!?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../java/com/psdc/service/impl/PsdcSceneServiceImpl.java | 7 ++++---
.../src/main/resources/mapper/business/PsdcSceneMapper.xml | 6 ------
2 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/psdc-business/src/main/java/com/psdc/service/impl/PsdcSceneServiceImpl.java b/psdc-business/src/main/java/com/psdc/service/impl/PsdcSceneServiceImpl.java
index 7404065..44ca4c7 100644
--- a/psdc-business/src/main/java/com/psdc/service/impl/PsdcSceneServiceImpl.java
+++ b/psdc-business/src/main/java/com/psdc/service/impl/PsdcSceneServiceImpl.java
@@ -100,6 +100,7 @@ public class PsdcSceneServiceImpl implements IPsdcSceneService {
@Override
@Transactional(propagation = REQUIRES_NEW)
public Boolean update(PsdcSceneRes scenes) {
+ psdcSceneMapper.deleteBySceneName(scenes.getSceneCode());
Long userId = SecurityUtils.getUserId();
Date date = new Date();
String userName = sysUserMapper.selectUserById(userId).getUserName();
@@ -124,11 +125,11 @@ public class PsdcSceneServiceImpl implements IPsdcSceneService {
for (SceneVo sc : scenesList) {
sc.setSceneCode(scenes.getSceneCode());
sc.setUserId(userId);
- sc.setUpdateBy(userName);
- sc.setUpdateTime(sdf.format(date));
+ sc.setCreateBy(userName);
+ sc.setCreateTime(sdf.format(date));
sc.setSceneRemark(scenes.getSceneRemark());
}
- psdcSceneMapper.UpdateSceneData(scenesList);
+ psdcSceneMapper.InsertSceneData(scenesList);
return true;
} catch (Exception e) {
e.printStackTrace();
diff --git a/psdc-business/src/main/resources/mapper/business/PsdcSceneMapper.xml b/psdc-business/src/main/resources/mapper/business/PsdcSceneMapper.xml
index 74e9de3..30b87ed 100644
--- a/psdc-business/src/main/resources/mapper/business/PsdcSceneMapper.xml
+++ b/psdc-business/src/main/resources/mapper/business/PsdcSceneMapper.xml
@@ -70,12 +70,6 @@
scene_remark = #{item.sceneRemark},
-
- update_by = #{item.updateBy},
-
-
- update_time = #{item.updateTime},
-