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"; }