丽知:仅退款优化日志

This commit is contained in:
zhengyf 2025-01-13 17:23:09 +08:00
parent 84fd0241d3
commit c4458718ed
2 changed files with 27 additions and 13 deletions

View File

@ -429,12 +429,12 @@ public class RefundOnlyPluginInitializerToB extends PluginBaseEntity {
parentvo.setLrr(OverallConstant.getOverAllValue("u8cApiZdrCode")); parentvo.setLrr(OverallConstant.getOverAllValue("u8cApiZdrCode"));
//wldx 往来对象标识 (0 客户 2部门 3业务员) //wldx 往来对象标识 (0 客户 2部门 3业务员)
parentvo.setWldx("0"); parentvo.setWldx("0");
//hbbm 客商==店铺,根据店铺区分tobtoc,,,编码需要转换转换称自定义项 // //hbbm 客商==店铺,根据店铺区分tobtoc,,,编码需要转换转换称自定义项
BdCubasdocEntity entity = queryU8CEntityUtil.getFuzzyQueryCustomers(split[1]); // BdCubasdocEntity entity = queryU8CEntityUtil.getFuzzyQueryCustomers(split[1]);
if (entity == null) { // if (entity == null) {
Assert.state(false, "根据客商自定义项1{},未查询到客商基本档案,请假查。", split[1]); // Assert.state(false, "根据客商自定义项1{},未查询到客商基本档案,请假查。", split[1]);
} // }
parentvo.setHbbm(entity.getCustcode()); // parentvo.setHbbm(entity.getCustcode());
//根据店铺区分tobtoc,区分业务流程 //根据店铺区分tobtoc,区分业务流程
String s = checkFlow(parentvo, split[1]); String s = checkFlow(parentvo, split[1]);
if ("TOC".equals(s)) { if ("TOC".equals(s)) {
@ -509,6 +509,14 @@ public class RefundOnlyPluginInitializerToB extends PluginBaseEntity {
continue; continue;
} }
//hbbm 客商==店铺,根据店铺区分tobtoc,,,编码需要转换转换称自定义项
BdCubasdocEntity entity = queryU8CEntityUtil.getFuzzyQueryCustomers(split[1]);
if (entity == null) {
Assert.state(false, "根据客商自定义项1{},未查询到客商基本档案,请假查。", split[1]);
}
parentvo.setHbbm(entity.getCustcode());
//按sku分组 //按sku分组
Map<String, List<RerturnGoodsOrderSearchDetails>> collectSKU = r1.stream().collect(Collectors.groupingBy(index -> index.getSkuCode())); Map<String, List<RerturnGoodsOrderSearchDetails>> collectSKU = r1.stream().collect(Collectors.groupingBy(index -> index.getSkuCode()));

View File

@ -377,7 +377,6 @@ public class RefundOnlyPluginInitializerToC extends PluginBaseEntity {
public void implement(List<RerturnGoodsOrderSearchData> filterReturnGoodsOrders) throws Exception { public void implement(List<RerturnGoodsOrderSearchData> filterReturnGoodsOrders) throws Exception {
//分摊分摊后的子表 //分摊分摊后的子表
List<RerturnGoodsOrderSearchDetails> allDetail = new ArrayList<>(); List<RerturnGoodsOrderSearchDetails> allDetail = new ArrayList<>();
List<RerturnGoodsOrderSearchHeader> allHeader = new ArrayList<>(); List<RerturnGoodsOrderSearchHeader> allHeader = new ArrayList<>();
@ -433,12 +432,12 @@ public class RefundOnlyPluginInitializerToC extends PluginBaseEntity {
parentvo.setLrr(OverallConstant.getOverAllValue("u8cApiZdrCode")); parentvo.setLrr(OverallConstant.getOverAllValue("u8cApiZdrCode"));
//wldx 往来对象标识 (0 客户 2部门 3业务员) //wldx 往来对象标识 (0 客户 2部门 3业务员)
parentvo.setWldx("0"); parentvo.setWldx("0");
//hbbm 客商==店铺,根据店铺区分tobtoc,,,编码需要转换转换称自定义项 // //hbbm 客商==店铺,根据店铺区分tobtoc,,,编码需要转换转换称自定义项
BdCubasdocEntity entity = queryU8CEntityUtil.getFuzzyQueryCustomers(split[1]); // BdCubasdocEntity entity = queryU8CEntityUtil.getFuzzyQueryCustomers(split[1]);
if (entity == null) { // if (entity == null) {
Assert.state(false, "根据客商自定义项1{},未查询到客商基本档案,请假查。", split[1]); // Assert.state(false, "根据客商自定义项1{},未查询到客商基本档案,请假查。", split[1]);
} // }
parentvo.setHbbm(entity.getCustcode()); // parentvo.setHbbm(entity.getCustcode());
//根据店铺区分tobtoc,区分业务流程 //根据店铺区分tobtoc,区分业务流程
String s = checkFlow(parentvo, split[1]); String s = checkFlow(parentvo, split[1]);
if ("TOB".equals(s)) { if ("TOB".equals(s)) {
@ -511,6 +510,13 @@ public class RefundOnlyPluginInitializerToC extends PluginBaseEntity {
continue; continue;
} }
//hbbm 客商==店铺,根据店铺区分tobtoc,,,编码需要转换转换称自定义项
BdCubasdocEntity entity = queryU8CEntityUtil.getFuzzyQueryCustomers(split[1]);
if (entity == null) {
Assert.state(false, "根据客商自定义项1{},未查询到客商基本档案,请假查。", split[1]);
}
parentvo.setHbbm(entity.getCustcode());
//按sku分组 //按sku分组
Map<String, List<RerturnGoodsOrderSearchDetails>> collectSKU = r1.stream().collect(Collectors.groupingBy(index -> index.getSkuCode())); Map<String, List<RerturnGoodsOrderSearchDetails>> collectSKU = r1.stream().collect(Collectors.groupingBy(index -> index.getSkuCode()));