From 1496bb4bda197db8f6e796f835cdc545e9f964ff Mon Sep 17 00:00:00 2001 From: wj <1285151836@qq.com> Date: Tue, 23 May 2023 20:54:21 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D--=E6=94=B9=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../glxp/api/controller/thrsys/ThrDeptController.java | 2 +- src/main/java/com/glxp/api/dao/thrsys/ThrDeptDao.java | 4 ++-- .../com/glxp/api/service/thrsys/ThrDeptService.java | 4 ++-- .../api/service/thrsys/impl/ThrDeptServiceImpl.java | 10 +++++----- .../resources/mybatis/mapper/thrsys/ThrDeptDao.xml | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/glxp/api/controller/thrsys/ThrDeptController.java b/src/main/java/com/glxp/api/controller/thrsys/ThrDeptController.java index 843519757..760e55759 100644 --- a/src/main/java/com/glxp/api/controller/thrsys/ThrDeptController.java +++ b/src/main/java/com/glxp/api/controller/thrsys/ThrDeptController.java @@ -80,7 +80,7 @@ public class ThrDeptController { } thrDeptEntity.setUpdateTime(new Date()); thrDeptEntity.setId(IdUtil.getSnowflakeNextId()); - boolean b = thrDeptService.insertInvWarehouse(thrDeptEntity); + boolean b = thrDeptService.insertThrDept(thrDeptEntity); if (!b) { return ResultVOUtils.error(ResultEnum.NOT_NETWORK); } diff --git a/src/main/java/com/glxp/api/dao/thrsys/ThrDeptDao.java b/src/main/java/com/glxp/api/dao/thrsys/ThrDeptDao.java index 06411a3f2..4c934c099 100644 --- a/src/main/java/com/glxp/api/dao/thrsys/ThrDeptDao.java +++ b/src/main/java/com/glxp/api/dao/thrsys/ThrDeptDao.java @@ -16,9 +16,9 @@ public interface ThrDeptDao extends BaseMapperPlus filterThrGroupInvWarehouse(FilterThrDeptRequest filterThrDeptRequest); - boolean insertThrInvWarehouse(ThrDeptEntity thrDeptEntity); + boolean insertThrDept(ThrDeptEntity thrDeptEntity); - boolean insertDeptList(@Param("thrDeptEntities") List thrDeptEntities); + boolean insertThrDeptList(@Param("thrDeptEntities") List thrDeptEntities); boolean updateThrInvWarehouse(ThrDeptEntity thrDeptEntity); diff --git a/src/main/java/com/glxp/api/service/thrsys/ThrDeptService.java b/src/main/java/com/glxp/api/service/thrsys/ThrDeptService.java index 55fbd0f27..5d1acc449 100644 --- a/src/main/java/com/glxp/api/service/thrsys/ThrDeptService.java +++ b/src/main/java/com/glxp/api/service/thrsys/ThrDeptService.java @@ -20,9 +20,9 @@ public interface ThrDeptService extends IService { List filterGroupInvWarehouse(FilterThrDeptRequest filterThrDeptRequest); - boolean insertInvWarehouse(ThrDeptEntity thrDeptEntity); + boolean insertThrDept(ThrDeptEntity thrDeptEntity); - boolean insertInvWarehouses(List thrDeptEntities); + boolean insertThrDeptList(List thrDeptEntities); boolean updateInvWarehouse(ThrDeptEntity thrDeptEntity); 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 55f13d1cf..6d892a2b3 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 @@ -78,13 +78,13 @@ public class ThrDeptServiceImpl extends ServiceImpl i } @Override - public boolean insertInvWarehouse(ThrDeptEntity thrDeptEntity) { - return thrDeptDao.insertThrInvWarehouse(thrDeptEntity); + public boolean insertThrDept(ThrDeptEntity thrDeptEntity) { + return thrDeptDao.insertThrDept(thrDeptEntity); } @Override - public boolean insertInvWarehouses(List thrDeptEntities) { - return thrDeptDao.insertDeptList(thrDeptEntities); + public boolean insertThrDeptList(List thrDeptEntities) { + return thrDeptDao.insertThrDeptList(thrDeptEntities); } @Override @@ -161,7 +161,7 @@ public class ThrDeptServiceImpl extends ServiceImpl i } //插入数据 - thrDeptDao.insertDeptList(list); + thrDeptDao.insertThrDeptList(list); thrInvWarehouseDao.insertThrInvWarehouses(warehouseList); if (list.size() >= limit) { page++; diff --git a/src/main/resources/mybatis/mapper/thrsys/ThrDeptDao.xml b/src/main/resources/mybatis/mapper/thrsys/ThrDeptDao.xml index 76bef351b..7c65aef9f 100644 --- a/src/main/resources/mybatis/mapper/thrsys/ThrDeptDao.xml +++ b/src/main/resources/mybatis/mapper/thrsys/ThrDeptDao.xml @@ -79,7 +79,7 @@ - replace INTO thr_dept @@ -174,7 +174,7 @@ - + replace into thr_dept (pid, code, `name`, advanceType, isDefault, status, updateTime, remark, `level`, pcode, thirdSysFk)