提交TOC流程修改
This commit is contained in:
parent
14fa78f169
commit
210eebc4e5
|
@ -307,6 +307,7 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
|
||||||
BdDeptdocEntity bdDeptdocEntity = oldValue.get(0).getBdDeptdocEntity();//业务部门
|
BdDeptdocEntity bdDeptdocEntity = oldValue.get(0).getBdDeptdocEntity();//业务部门
|
||||||
BdCumandocEntity bdCumandocEntity = oldValue.get(0).getBdCumandocEntity();//客商管理档案
|
BdCumandocEntity bdCumandocEntity = oldValue.get(0).getBdCumandocEntity();//客商管理档案
|
||||||
BdCubasdocEntity bdCubasdocEntity = oldValue.get(0).getBdCubasdocEntity();//客商基本档案
|
BdCubasdocEntity bdCubasdocEntity = oldValue.get(0).getBdCubasdocEntity();//客商基本档案
|
||||||
|
BdDefdocEntity platformArchives = oldValue.get(0).getPlatformArchives();//U8C平台档案
|
||||||
|
|
||||||
try {
|
try {
|
||||||
checkArchives(oldValue.get(0));
|
checkArchives(oldValue.get(0));
|
||||||
|
@ -330,7 +331,16 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
|
||||||
saleorderRequestParentDto.setDapprovedate(generateBusinessDate);//审核日期
|
saleorderRequestParentDto.setDapprovedate(generateBusinessDate);//审核日期
|
||||||
saleorderRequestParentDto.setNdiscountrate("100.000000");//整单折扣
|
saleorderRequestParentDto.setNdiscountrate("100.000000");//整单折扣
|
||||||
saleorderRequestParentDto.setPk_corp(bdCorpEntity.getPkCorp());//公司id
|
saleorderRequestParentDto.setPk_corp(bdCorpEntity.getPkCorp());//公司id
|
||||||
saleorderRequestParentDto.setVdef18(keyGroup);//汇总单号=汇总维度
|
|
||||||
|
//汇总单号=汇总维度
|
||||||
|
saleorderRequestParentDto.setVdef18(keyGroup);
|
||||||
|
|
||||||
|
//平台
|
||||||
|
saleorderRequestParentDto.setPk_defdoc2(platformArchives.getPkDefdoc());
|
||||||
|
saleorderRequestParentDto.setVdef2(platformArchives.getDocname());
|
||||||
|
|
||||||
|
//TODO 2024年8月8日 17:17:58 店铺档案自定义项1,先不传,后续维护好之后再传!
|
||||||
|
|
||||||
saleorderRequestDto.setParentvo(saleorderRequestParentDto);
|
saleorderRequestDto.setParentvo(saleorderRequestParentDto);
|
||||||
|
|
||||||
List<SaleorderRequestChildrenDto> saleorderRequestChildrenDtoList = new ArrayList<>();
|
List<SaleorderRequestChildrenDto> saleorderRequestChildrenDtoList = new ArrayList<>();
|
||||||
|
@ -406,6 +416,7 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
|
||||||
Map<String, List<SaleorderRequestDto>> stringStringMap = new HashMap<>();
|
Map<String, List<SaleorderRequestDto>> stringStringMap = new HashMap<>();
|
||||||
stringStringMap.put("saleorder", saleorderRequestDtoList);
|
stringStringMap.put("saleorder", saleorderRequestDtoList);
|
||||||
SoSaleResultRootDto soSaleResultRootDto = sendU8CTOCOrder(JSON.toJSONString(stringStringMap));
|
SoSaleResultRootDto soSaleResultRootDto = sendU8CTOCOrder(JSON.toJSONString(stringStringMap));
|
||||||
|
logger.info("销售订单编号:{} 销售公司:{}", soSaleResultRootDto.getParentvo().getVreceiptcode(), soSaleResultRootDto.getParentvo().getPk_corp());
|
||||||
//记录成功
|
//记录成功
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("TOC业务转换成U8C对象过程中、或者单据推送到U8C出现异常!", e);
|
logger.error("TOC业务转换成U8C对象过程中、或者单据推送到U8C出现异常!", e);
|
||||||
|
@ -509,6 +520,10 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
|
||||||
BdCumandocEntity bdCumandocEntity = BasicArchivesCacheUtil.stringBdCumandocEntityMap.get(bdCubasdocEntity.getPkCubasdoc() + bdCorpEntity.getPkCorp());
|
BdCumandocEntity bdCumandocEntity = BasicArchivesCacheUtil.stringBdCumandocEntityMap.get(bdCubasdocEntity.getPkCubasdoc() + bdCorpEntity.getPkCorp());
|
||||||
Assert.notNull(bdCumandocEntity, "无法匹配到客商档案 店铺名称:{}", "天猫intoyou旗舰店-自营");
|
Assert.notNull(bdCumandocEntity, "无法匹配到客商档案 店铺名称:{}", "天猫intoyou旗舰店-自营");
|
||||||
|
|
||||||
|
//查找平台
|
||||||
|
BdDefdocEntity bdDefdocEntity = BasicArchivesCacheUtil.stringBdDefdocEntityHashMap.get(header.getSourcePlatformCode());
|
||||||
|
Assert.notNull(bdDefdocEntity, "根据O平台编码({})无法匹配到平台", header.getSourcePlatformCode());
|
||||||
|
|
||||||
//字段拷贝
|
//字段拷贝
|
||||||
for (int j = 0; j < details.size(); j++) {
|
for (int j = 0; j < details.size(); j++) {
|
||||||
DetailsDto detailsDto = details.get(j);
|
DetailsDto detailsDto = details.get(j);
|
||||||
|
@ -527,6 +542,7 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
|
||||||
sonDetailsDto.setBdDeptdocEntity(bdDeptdocEntity);
|
sonDetailsDto.setBdDeptdocEntity(bdDeptdocEntity);
|
||||||
sonDetailsDto.setBdCumandocEntity(bdCumandocEntity);
|
sonDetailsDto.setBdCumandocEntity(bdCumandocEntity);
|
||||||
sonDetailsDto.setBdCubasdocEntity(bdCubasdocEntity);
|
sonDetailsDto.setBdCubasdocEntity(bdCubasdocEntity);
|
||||||
|
sonDetailsDto.setPlatformArchives(bdDefdocEntity);
|
||||||
|
|
||||||
BeanUtil.copyPropertiesV2(detailsDto, sonDetailsDto);
|
BeanUtil.copyPropertiesV2(detailsDto, sonDetailsDto);
|
||||||
sonDetailsDtoList.add(sonDetailsDto);
|
sonDetailsDtoList.add(sonDetailsDto);
|
||||||
|
@ -777,6 +793,9 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
|
||||||
long endLong = System.currentTimeMillis();
|
long endLong = System.currentTimeMillis();
|
||||||
logger.info("TOC接口请求耗时:" + (endLong - startLong));
|
logger.info("TOC接口请求耗时:" + (endLong - startLong));
|
||||||
|
|
||||||
|
JSONObject jsonObject = JSON.parseObject(result);
|
||||||
|
result = String.valueOf(jsonObject.get("attribute"));
|
||||||
|
|
||||||
boolean isSuccess = false;
|
boolean isSuccess = false;
|
||||||
SoSaleResultRootDto soSaleResultRootDto = null;
|
SoSaleResultRootDto soSaleResultRootDto = null;
|
||||||
if (result != null && !"".equals(result)) {
|
if (result != null && !"".equals(result)) {
|
||||||
|
@ -812,4 +831,6 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue