From a7a30efd9e5981c87a82ba37d7c449be1c7255cb Mon Sep 17 00:00:00 2001 From: zhengyf Date: Mon, 19 Aug 2024 18:48:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BD=E7=9F=A5=EF=BC=9A=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=EF=BC=9A=E5=AD=98=E8=B4=A7=E6=A1=A3=E6=A1=88=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=88=86=E9=85=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/GoodsAutoAllotPluginInitializer.java | 13 +++++++------ .../frame/plugin/lets/u8cdto/GoodsAutoAllotVO.java | 2 ++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/base/GoodsAutoAllotPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/base/GoodsAutoAllotPluginInitializer.java index 32783c70..00de6d4b 100644 --- a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/base/GoodsAutoAllotPluginInitializer.java +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/base/GoodsAutoAllotPluginInitializer.java @@ -121,21 +121,22 @@ public class GoodsAutoAllotPluginInitializer extends PluginBaseEntity { } /** - * 按存货基本档案主键 + * 按存货基本档案code */ - public void start(String pkInvbasdoc) { + public void start(String invcode) { try { BdInvbasdocEntity bdInvbasdocEntity = new BdInvbasdocEntity(); - bdInvbasdocEntity.setPkInvbasdoc(pkInvbasdoc); +// bdInvbasdocEntity.setPkInvbasdoc(invcode); + bdInvbasdocEntity.setInvcode(invcode); bdInvbasdocEntity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE); List bdInvbasdocEntityList = bdInvbasdocDao.query(bdInvbasdocEntity); if (bdInvbasdocEntityList.size() == 0) { - Assert.state(false, "U8C->存货基本档案自动分配全公司,存货基本档案主键:{},不存在。", pkInvbasdoc); + Assert.state(false, "U8C->存货基本档案自动分配全公司,存货基本档案编码:{},不存在。", invcode); } //过滤日志 List filterInvbasdocList = filter(bdInvbasdocEntityList); if (filterInvbasdocList.size() == 0 || filterInvbasdocList == null) { - Assert.state(false, "U8C->存货基本档案自动分配全公司,存货基本档案主键:{},已被分配,请检查。", pkInvbasdoc); + Assert.state(false, "U8C->存货基本档案自动分配全公司,存货基本档案编码:{},已被分配,请检查。", invcode); } //推送:自动分配 implement(filterInvbasdocList); @@ -185,7 +186,7 @@ public class GoodsAutoAllotPluginInitializer extends PluginBaseEntity { public List filter(List bdInvbasdocEntityList) { List filterInvbasdocList = new ArrayList<>(); for (BdInvbasdocEntity bdInvbasdocEntity : bdInvbasdocEntityList) { - String rootAppPk = bdInvbasdocEntity.getPkInvbasdoc(); + String rootAppPk = bdInvbasdocEntity.getInvcode(); boolean isExis = true; IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity(); integrationTaskLivingDetailsEntity.setRootAppPk(rootAppPk); diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/GoodsAutoAllotVO.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/GoodsAutoAllotVO.java index c17f4717..22bae442 100644 --- a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/GoodsAutoAllotVO.java +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/GoodsAutoAllotVO.java @@ -6,4 +6,6 @@ import lombok.Data; public class GoodsAutoAllotVO { private String pk_invbasdoc; private String pk_corp="all"; + private String pk_measdoc="all"; + private String proBilltemplet="BD100812100000000001"; }