From 21b81c5e40fd3c25f04f7bf3234584ebdf0b54ed Mon Sep 17 00:00:00 2001 From: wj <1285151836@qq.com> Date: Tue, 23 May 2023 21:12:47 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/glxp/api/service/thrsys/impl/ThrDeptServiceImpl.java | 1 + src/main/resources/mybatis/mapper/thrsys/ThrDeptDao.xml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/glxp/api/service/thrsys/impl/ThrDeptServiceImpl.java b/src/main/java/com/glxp/api/service/thrsys/impl/ThrDeptServiceImpl.java index 6d892a2b3..6a0d2d4d3 100644 --- a/src/main/java/com/glxp/api/service/thrsys/impl/ThrDeptServiceImpl.java +++ b/src/main/java/com/glxp/api/service/thrsys/impl/ThrDeptServiceImpl.java @@ -146,6 +146,7 @@ public class ThrDeptServiceImpl extends ServiceImpl i thrDeptEntity.setAdvanceType(false); //默认是仓库 thrDeptEntity.setStatus(1);//默认启用 thrDeptEntity.setUpdateTime(new Date()); + thrDeptEntity.setId(IdUtil.getSnowflake(6, 1).nextId()); list.add(thrDeptEntity); ThrInvWarehouseEntity thrInvWarehouseEntity = new ThrInvWarehouseEntity(); diff --git a/src/main/resources/mybatis/mapper/thrsys/ThrDeptDao.xml b/src/main/resources/mybatis/mapper/thrsys/ThrDeptDao.xml index eddcacaed..911e382bc 100644 --- a/src/main/resources/mybatis/mapper/thrsys/ThrDeptDao.xml +++ b/src/main/resources/mybatis/mapper/thrsys/ThrDeptDao.xml @@ -175,12 +175,13 @@ - replace into thr_dept (pid, code, `name`, advanceType, isDefault, status, updateTime, remark, `level`, + replace into thr_dept (id,pid, code, `name`, advanceType, isDefault, status, updateTime, remark, `level`, pcode, thirdSysFk) values - (#{item.pid}, + (#{item.id}, + #{item.pid}, #{item.code}, #{item.name}, #{item.advanceType},