|
|
|
@ -797,15 +797,16 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//异步存入日志
|
|
|
|
|
Date date = new Date(); |
|
|
|
|
String nickName = AuthUtil.getNickName(); |
|
|
|
|
Long userId = AuthUtil.getUserId(); |
|
|
|
|
String createOperationRemark = "创建运单" + waybillNo + ",时间:" + CommonUtil.dateToStringGeneral(new Date()); |
|
|
|
|
String createOperationRemark = "创建运单" + waybillNo + ",时间:" + CommonUtil.dateToStringGeneral(date); |
|
|
|
|
openOrderAsyncService.saveLog(waybillId, waybillNo, "10", "创建运单", createOperationRemark, nickName, userId, warehouseId, warehouseName); |
|
|
|
|
|
|
|
|
|
Integer totalCount = waybillEntity.getTotalCount(); |
|
|
|
|
Integer stockCount = waybillEntity.getStockCount(); |
|
|
|
|
if (totalCount.equals(stockCount)) { |
|
|
|
|
createOperationRemark = "运单入库:" + stockCount + "/" + totalCount + ",入库类型:【零担开单及入库】,入库时间:" + CommonUtil.dateToStringGeneral(waybillEntity.getCreateTime()); |
|
|
|
|
createOperationRemark = "运单入库:" + stockCount + "/" + totalCount + ",入库类型:【零担开单及入库】,入库时间:" + CommonUtil.dateToStringGeneral(date); |
|
|
|
|
openOrderAsyncService.saveLog(waybillId, waybillNo, "20", "已入库", createOperationRemark, nickName, userId, warehouseId, warehouseName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1070,7 +1071,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
advanceEntity.setCustomerName(openLabelDTO.getCustomerName()); |
|
|
|
|
advanceEntity.setCustomerPhone(openLabelDTO.getCustomerPhone()); |
|
|
|
|
advanceEntity.setCustomerAddress(openLabelDTO.getCustomerAddress()); |
|
|
|
|
advanceEntity.setSystemType("线上"); |
|
|
|
|
advanceEntity.setSystemType("线下"); |
|
|
|
|
advanceEntity.setServiceNum(openLabelDTO.getServiceNum()); |
|
|
|
|
advanceEntity.setMatingType("1"); |
|
|
|
|
advanceEntity.setSenderName(openLabelDTO.getSenderName()); |
|
|
|
@ -1089,7 +1090,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
advanceDetailModel.setAdvanceId(advanceId); |
|
|
|
|
advanceDetailModel.setOrderCode(openLabelDTO.getOrderCode()); |
|
|
|
|
advanceDetailModel.setBrand(openLabelDTO.getBrand()); |
|
|
|
|
advanceDetailModel.setSystemType("线上"); |
|
|
|
|
advanceDetailModel.setSystemType("线下"); |
|
|
|
|
// advanceDetailModel.setOrderPackageCode(basicdataCodeClient.getCodeByType(CodeNumConstant.PACKAGE, warehouseCode, orderCode));
|
|
|
|
|
|
|
|
|
|
advanceDetailModel.setFirstPackName(firsts); |
|
|
|
@ -1106,6 +1107,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
advanceDetailModel.setThirdPackName(thirds); |
|
|
|
|
} |
|
|
|
|
advanceDetailModel.setSiteName(openLabelDTO.getSiteName()); |
|
|
|
|
advanceDetailModel.setMaterialName(openLabelDTO.getMaterialName()); |
|
|
|
|
advanceDetailModel.setQuantity(1); |
|
|
|
|
advanceDetailModel.setServiceNum(openLabelDTO.getServiceNum()); |
|
|
|
|
advanceDetailModel.setPackageStatus("0"); |
|
|
|
|