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