Browse Source

1.修改梦天的包间品类

training
pref_mail@163.com 1 year ago
parent
commit
942d486382
  1. 45
      blade-service/logpm-factory/src/main/java/com/logpm/factory/comfac/service/impl/AsyncDataServiceImpl.java

45
blade-service/logpm-factory/src/main/java/com/logpm/factory/comfac/service/impl/AsyncDataServiceImpl.java

@ -302,7 +302,16 @@ public class AsyncDataServiceImpl implements IAsyncDataService {
serviceNum.setCustomerName(StringUtil.isBlank(mtFactoryOrder.getCustomName()) ? "" : mtFactoryOrder.getCustomName());//顾客姓名
serviceNum.setCustomerPhone(StringUtil.isBlank(mtFactoryOrder.getCustomPhone()) ? "" : mtFactoryOrder.getCustomPhone()); //顾客电话
serviceNum.setCustomerRoad(StringUtil.isBlank(mtFactoryOrder.getCustomAddress()) ? "" : mtFactoryOrder.getCustomAddress()); //顾客地址
/**
* 如过是中心仓 是干仓配 如是转运车 非干干脆 0
*/
if("中心仓".equals(mtFactoryOrderMain.getWarehouseType())){
serviceNum.setIsOpai(1); //是否干仓配
}else { //转运仓或者其它情况
serviceNum.setIsOpai(0); //是否干仓配
}
serviceNum.setCompleteSet("V"); //齐套标识:Y=齐套,N=未齐套,V=未知
// serviceNum.setCreateTime(LocalDate.now());
serviceNum.setDeleteTime(0);
@ -347,15 +356,23 @@ public class AsyncDataServiceImpl implements IAsyncDataService {
advanceDetailEntity.setType(FactoryConstant.MENGT);//订单来源
advanceDetailEntity.setSystemType("线上");//订单类型
advanceDetailEntity.setOrderNum("");//MSCS单号 可以为空
advanceDetailEntity.setIsOpai(0);//是否干仓配:1=是,0=否
if("中心仓".equals(mtFactoryOrderMain.getWarehouseType())){
advanceDetailEntity.setIsOpai(1); //是否干仓配
}else { //转运仓或者其它情况
advanceDetailEntity.setIsOpai(0); //是否干仓配
}
advanceDetailEntity.setMtdsNo(mtFactoryOrder.getProduceOrderCode());//MTDS单号 可以为空
advanceDetailEntity.setFirstPackName("门");//一级品类
advanceDetailEntity.setFirstPackName(mtPackageInfo.getBigType());//一级品类
// advanceDetailEntity.setFirstPackName(StringUtil.isBlank(mtPackageInfo.getBigType())?"":mtPackageInfo.getBigType());//一级品类
advanceDetailEntity.setFirstPackCode("");//二级品类
advanceDetailEntity.setSiteName("");//基地名称 基地 TODO 需要映射
advanceDetailEntity.setSiteCode("");//基地编码
advanceDetailEntity.setProductCode(StringUtil.isBlank(mtPackageInfo.getPackageType()) ? "" : mtPackageInfo.getPackageType());//货品名称 可以为空
advanceDetailEntity.setSecondPackName("");//二级品类名称
advanceDetailEntity.setSecondPackName(mtPackageInfo.getColor());//二级品类名称 二级品这里使用的原始数据的颜色
advanceDetailEntity.setSecondPackCode("");//二级品类
advanceDetailEntity.setThirdPackName("");//三级品类名称
advanceDetailEntity.setThirdPackCode("");//三级品类
@ -389,18 +406,34 @@ public class AsyncDataServiceImpl implements IAsyncDataService {
advanceEntity.setMctsTruckNo(mtFactoryOrderMain.getSendCarNumber());// 车牌//字段没有了
advanceEntity.setFirstPackName(""); //一级品类
advanceEntity.setFirstPackCode(""); //一级品类
advanceEntity.setDealerName(mtFactoryOrder.getDealerName()); //商场名称
advanceEntity.setDealerCode(StringUtil.isBlank(mtFactoryOrder.getDealerCode()) ? "" : mtFactoryOrder.getDealerCode()); //商场编码
advanceEntity.setDueDate(""); // 交期
if("中心仓".equals(mtFactoryOrderMain.getWarehouseType())){
advanceEntity.setIsOpai(1); //是否干仓配
}else{ //转运仓或者其它情况
advanceEntity.setIsOpai(0); //是否干仓配
}
advanceEntity.setDueDate(""); // 交期
advanceEntity.setOrderNum("");//MSCS订单号 可以为空
advanceEntity.setCarrierName("汇通");//承运商 可以为空
advanceEntity.setCustomerName(StringUtil.isBlank(mtFactoryOrder.getCustomName()) ? "" : mtFactoryOrder.getCustomName()); //顾客名称
advanceEntity.setCustomerPhone(StringUtil.isBlank(mtFactoryOrder.getCustomPhone()) ? "" : mtFactoryOrder.getCustomPhone()); // 顾客电话
advanceEntity.setCustomerRoad(StringUtil.isBlank(mtFactoryOrder.getCustomAddress()) ? "" : mtFactoryOrder.getCustomAddress());//顾客地址
advanceEntity.setSystemType("线上"); //订单类型
advanceEntity.setStoreNo(mtFactoryOrder.getExclusiveCode()); //门店编码
advanceEntity.setStoreName(mtFactoryOrder.getExclusiveName()); //门店名称
// advanceEntity.setStoreNo(mtFactoryOrder.getExclusiveCode()); //门店编码
// advanceEntity.setStoreName(mtFactoryOrder.getExclusiveName()); //门店名称
//todo 这里是老系统无法呈现门店信息 所以将门店信息同步修改为经销商信息
advanceEntity.setStoreNo(mtFactoryOrder.getDealerName()); //
advanceEntity.setStoreName(StringUtil.isBlank(mtFactoryOrder.getDealerCode()) ? "" : mtFactoryOrder.getDealerCode()); //门店名称
advanceEntity.setSerialKey(""); //序列号
advanceEntity.setServiceNum(StringUtil.isBlank(mtFactoryOrder.getMainOrderCode()) ? "" : mtFactoryOrder.getMainOrderCode()); //服务号
advanceEntity.setMatingCode("");//齐套模式 可以为空

Loading…
Cancel
Save