丽知:存货自动分类修改
This commit is contained in:
parent
34b7dd3430
commit
41a7af78c0
|
@ -172,12 +172,12 @@ public class GoodsAutoAllotPluginInitializer extends PluginBaseEntity {
|
|||
Assert.state(false, "U8C->存货基本档案自动分配全公司,存货基本档案编码:{},不存在。", invcode);
|
||||
}
|
||||
//过滤日志
|
||||
List<BdInvbasdocEntity> filterInvbasdocList = filter(bdInvbasdocEntityList);
|
||||
if (filterInvbasdocList.size() == 0 || filterInvbasdocList == null) {
|
||||
Assert.state(false, "U8C->存货基本档案自动分配全公司,存货基本档案编码:{},已被分配,请检查。", invcode);
|
||||
}
|
||||
// List<BdInvbasdocEntity> filterInvbasdocList = filter(bdInvbasdocEntityList);
|
||||
// if (filterInvbasdocList.size() == 0 || filterInvbasdocList == null) {
|
||||
// Assert.state(false, "U8C->存货基本档案自动分配全公司,存货基本档案编码:{},已被分配,请检查。", invcode);
|
||||
// }
|
||||
//推送:自动分配
|
||||
implement(filterInvbasdocList);
|
||||
implement(bdInvbasdocEntityList);
|
||||
|
||||
} catch (Exception e) {
|
||||
logger.error("丽知:U8C->存货基本档案自动分配全公司,start(String pkInvbasdoc)方法报错:", e);
|
||||
|
@ -224,7 +224,7 @@ public class GoodsAutoAllotPluginInitializer extends PluginBaseEntity {
|
|||
public List<BdInvbasdocEntity> filter(List<BdInvbasdocEntity> bdInvbasdocEntityList) {
|
||||
List<BdInvbasdocEntity> filterInvbasdocList = new ArrayList<>();
|
||||
for (BdInvbasdocEntity bdInvbasdocEntity : bdInvbasdocEntityList) {
|
||||
String rootAppPk = bdInvbasdocEntity.getInvcode()+"_"+bdInvbasdocEntity.getTs();
|
||||
String rootAppPk = bdInvbasdocEntity.getInvcode();
|
||||
boolean isExis = true;
|
||||
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity();
|
||||
integrationTaskLivingDetailsEntity.setRootAppPk(rootAppPk);
|
||||
|
@ -293,7 +293,7 @@ public class GoodsAutoAllotPluginInitializer extends PluginBaseEntity {
|
|||
integrationTaskLivingDetailsEntity.setNewTransmitInfo(response);
|
||||
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||
integrationTaskLivingDetailsEntity.setBusinessDate(createtime);
|
||||
integrationTaskLivingDetailsEntity.setRootAppPk(pkInvbasdoc+"_"+bdInvbasdocEntity.getTs());
|
||||
integrationTaskLivingDetailsEntity.setRootAppPk(pkInvbasdoc);
|
||||
integrationTaskLivingDetailsEntity.setRootAppBill(bdInvbasdocEntity.getInvcode());
|
||||
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
||||
saveOrUpdateBusinessLogUtil.saveOrUpdate(integrationTaskLivingDetailsEntity);
|
||||
|
@ -307,7 +307,7 @@ public class GoodsAutoAllotPluginInitializer extends PluginBaseEntity {
|
|||
integrationTaskLivingDetailsEntity.setNewTransmitInfo(ErrMessage);
|
||||
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||
integrationTaskLivingDetailsEntity.setBusinessDate(createtime);
|
||||
integrationTaskLivingDetailsEntity.setRootAppPk(pkInvbasdoc+"_"+bdInvbasdocEntity.getTs());
|
||||
integrationTaskLivingDetailsEntity.setRootAppPk(pkInvbasdoc);
|
||||
integrationTaskLivingDetailsEntity.setRootAppBill(bdInvbasdocEntity.getInvcode());
|
||||
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
||||
saveOrUpdateBusinessLogUtil.saveOrUpdate(integrationTaskLivingDetailsEntity);
|
||||
|
|
Loading…
Reference in New Issue