From b5f142cc3e944c4b5b2addd8ddaffc9159e22b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E8=8D=A3=E6=99=9F?= <9691125+pan-rongsheng@user.noreply.gitee.com> Date: Wed, 14 Jan 2026 17:45:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E5=94=AF?= =?UTF-8?q?=E4=B8=80=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InternalWarehouseMapper.java | 4 ++-- .../InternalWarehouseServiceImpl.java | 17 +++++++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/zt-module-erp/zt-module-erp-server/src/main/java/com/zt/plat/module/erp/dal/mysql/erp/internalwarehouse/InternalWarehouseMapper.java b/zt-module-erp/zt-module-erp-server/src/main/java/com/zt/plat/module/erp/dal/mysql/erp/internalwarehouse/InternalWarehouseMapper.java index fb99b541..e3d208af 100644 --- a/zt-module-erp/zt-module-erp-server/src/main/java/com/zt/plat/module/erp/dal/mysql/erp/internalwarehouse/InternalWarehouseMapper.java +++ b/zt-module-erp/zt-module-erp-server/src/main/java/com/zt/plat/module/erp/dal/mysql/erp/internalwarehouse/InternalWarehouseMapper.java @@ -35,8 +35,8 @@ public interface InternalWarehouseMapper extends BaseMapperX0) { + public void validateInternalWarehouseExists(String number, String type, Long id) { + InternalWarehouseDO internalWarehouseDO = internalWarehouseMapper.selectInternalWarehouseDOByNumber(number); + if (internalWarehouseDO != null && "insert".equals(type)) { + throw exception(INTERNAL_WAREHOUSE_EXISTS); + } else if (internalWarehouseDO != null && "update".equals(type) && !Objects.equals(id, internalWarehouseDO.getId())) { throw exception(INTERNAL_WAREHOUSE_EXISTS); } } + @Override public void updateInternalWarehouse(InternalWarehouseSaveReqVO updateReqVO) { // 校验存在 validateInternalWarehouseExists(updateReqVO.getId()); + // 校验所绑定的库位是否已经存在 + validateInternalWarehouseExists(updateReqVO.getNumber(), "update", updateReqVO.getId()); // 更新 InternalWarehouseDO updateObj = BeanUtils.toBean(updateReqVO, InternalWarehouseDO.class); internalWarehouseMapper.updateById(updateObj); @@ -77,12 +82,12 @@ public class InternalWarehouseServiceImpl implements InternalWarehouseService { } @Override - public void deleteInternalWarehouseListByIds(List ids) { + public void deleteInternalWarehouseListByIds(List ids) { // 校验存在 validateInternalWarehouseExists(ids); // 删除 internalWarehouseMapper.deleteByIds(ids); - } + } private void validateInternalWarehouseExists(List ids) { List list = internalWarehouseMapper.selectByIds(ids); From 5877705ac30b01416699c0c47e7fde5fa42c060a Mon Sep 17 00:00:00 2001 From: ranke <213539@qq.com> Date: Thu, 15 Jan 2026 08:45:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BF=AB=E7=85=A7?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 8917ad68..fdc691a6 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ https://github.com/YunaiV/ruoyi-vue-pro - 3.0.46 + 3.0.47-SNAPSHOT 17 ${java.version} @@ -167,11 +167,11 @@ 中铜 ZStack 私服 http://172.16.46.63:30708/repository/test/ - - - - - + + ZT-snap + 中铜 ZStack 私服 + http://172.16.46.63:30708/repository/test-snap/ +