|
|
@@ -3221,7 +3221,7 @@ public class KwtAcceptCarriageOrderService {
|
|
|
//商品信息
|
|
|
setLogisticGoodsInfo(orderDTO, lOrderId, lOrderNo, savelogOrderGoodsList);
|
|
|
//物流订单与合同信息
|
|
|
- setLogisticContractInfo(x, lOrderId, saveContractList);
|
|
|
+ setLogisticContractInfo(orderDTO,x, lOrderId, saveContractList);
|
|
|
//企业信息数据
|
|
|
setLogisticUnitInfo(orderDTO, x, lOrderId, savelogOrderUnitList);
|
|
|
|
|
|
@@ -3254,9 +3254,9 @@ public class KwtAcceptCarriageOrderService {
|
|
|
consignUnit.setPhone(orderDTO.getConsignContactPhone());
|
|
|
// consignUnit.setRemark(orderDTO.getRemark());
|
|
|
consignUnit.setStatus(NumberConstant.ZERO);
|
|
|
- consignUnit.setCreateBy(LoginUserHolder.getUserId());
|
|
|
+ consignUnit.setCreateBy(orderDTO.getUserId());
|
|
|
consignUnit.setCreateTime(new Date());
|
|
|
- consignUnit.setUpdateBy(LoginUserHolder.getUserId());
|
|
|
+ consignUnit.setUpdateBy(orderDTO.getUserId());
|
|
|
consignUnit.setUpdateTime(new Date());
|
|
|
savelogOrderUnitList.add(consignUnit);
|
|
|
//承运
|
|
|
@@ -3276,14 +3276,14 @@ public class KwtAcceptCarriageOrderService {
|
|
|
unit.setPhone(x.getAcceptContactPhone());
|
|
|
// unit.setRemark(orderDTO.getRemark());
|
|
|
unit.setStatus(NumberConstant.ZERO);
|
|
|
- unit.setCreateBy(LoginUserHolder.getUserId());
|
|
|
+ unit.setCreateBy(orderDTO.getUserId());
|
|
|
unit.setCreateTime(new Date());
|
|
|
- unit.setUpdateBy(LoginUserHolder.getUserId());
|
|
|
+ unit.setUpdateBy(orderDTO.getUserId());
|
|
|
unit.setUpdateTime(new Date());
|
|
|
savelogOrderUnitList.add(unit);
|
|
|
}
|
|
|
|
|
|
- private static void setLogisticContractInfo(LogisticData x, Long lOrderId, List<KwtLogisticsOrderContract> saveContractList) {
|
|
|
+ private static void setLogisticContractInfo(AddLogisticOrderDTO orderDTO,LogisticData x, Long lOrderId, List<KwtLogisticsOrderContract> saveContractList) {
|
|
|
KwtLogisticsOrderContract contract = new KwtLogisticsOrderContract();
|
|
|
contract.setId(new IdWorker(NumberConstant.ONE).nextId());
|
|
|
contract.setContractId(x.getContractId());
|
|
|
@@ -3291,9 +3291,9 @@ public class KwtAcceptCarriageOrderService {
|
|
|
contract.setContractNo(x.getContractNo());
|
|
|
contract.setContractName(x.getContractName());
|
|
|
contract.setSigningWay(String.valueOf(x.getSigningWay()));
|
|
|
- contract.setCreateBy(LoginUserHolder.getUserId());
|
|
|
+ contract.setCreateBy(orderDTO.getUserId());
|
|
|
contract.setCreateTime(new Date());
|
|
|
- contract.setUpdateBy(LoginUserHolder.getUserId());
|
|
|
+ contract.setUpdateBy(orderDTO.getUserId());
|
|
|
contract.setUpdateTime(new Date());
|
|
|
saveContractList.add(contract);
|
|
|
}
|
|
|
@@ -3306,9 +3306,9 @@ public class KwtAcceptCarriageOrderService {
|
|
|
goods.setGoodsName(orderDTO.getGoodsName());
|
|
|
goods.setGoodsType(orderDTO.getGoodsType());
|
|
|
goods.setStatus(NumberConstant.ZERO);
|
|
|
- goods.setCreateBy(LoginUserHolder.getUserId());
|
|
|
+ goods.setCreateBy(orderDTO.getUserId());
|
|
|
goods.setCreateTime(new Date());
|
|
|
- goods.setUpdateBy(LoginUserHolder.getUserId());
|
|
|
+ goods.setUpdateBy(orderDTO.getUserId());
|
|
|
goods.setUpdateTime(new Date());
|
|
|
savelogOrderGoodsList.add( goods);
|
|
|
}
|
|
|
@@ -3328,10 +3328,10 @@ public class KwtAcceptCarriageOrderService {
|
|
|
|
|
|
loadAddress.setEntryType(NumberConstant.FOUR);
|
|
|
loadAddress.setStatus(NumberConstant.ZERO);
|
|
|
- loadAddress.setCreateBy(LoginUserHolder.getUserId());
|
|
|
+ loadAddress.setCreateBy(orderDTO.getUserId());
|
|
|
Date date1 = new Date();
|
|
|
loadAddress.setCreateTime(date1);
|
|
|
- loadAddress.setUpdateBy(LoginUserHolder.getUserId());
|
|
|
+ loadAddress.setUpdateBy(orderDTO.getUserId());
|
|
|
loadAddress.setUpdateTime(date1);
|
|
|
saveAddressList.add(loadAddress);
|
|
|
KwtLogisticsOrderAddress unloadAddress = new KwtLogisticsOrderAddress();
|
|
|
@@ -3347,9 +3347,9 @@ public class KwtAcceptCarriageOrderService {
|
|
|
unloadAddress.setDetailAddress(x.getUnloadDetailAddress());
|
|
|
unloadAddress.setEntryType(NumberConstant.FOUR);
|
|
|
unloadAddress.setStatus(NumberConstant.ZERO);
|
|
|
- unloadAddress.setCreateBy(LoginUserHolder.getUserId());
|
|
|
+ unloadAddress.setCreateBy(orderDTO.getUserId());
|
|
|
unloadAddress.setCreateTime(date1);
|
|
|
- unloadAddress.setUpdateBy(LoginUserHolder.getUserId());
|
|
|
+ unloadAddress.setUpdateBy(orderDTO.getUserId());
|
|
|
unloadAddress.setUpdateTime(date1);
|
|
|
saveAddressList.add(unloadAddress);
|
|
|
}
|
|
|
@@ -3357,7 +3357,7 @@ public class KwtAcceptCarriageOrderService {
|
|
|
private static void setLogisticOrderInfo(AddLogisticOrderDTO orderDTO, LogisticData x, Long lOrderId, String lOrderNo, List<KwtLogisticsOrder> saveLogisticsOrderList) {
|
|
|
KwtLogisticsOrder kwtLogisticsOrder = new KwtLogisticsOrder();
|
|
|
kwtLogisticsOrder.setId(lOrderId);
|
|
|
- kwtLogisticsOrder.setEntId(LoginUserHolder.getEntId());
|
|
|
+ kwtLogisticsOrder.setEntId(orderDTO.getEntId());
|
|
|
kwtLogisticsOrder.setType(String.valueOf(x.getType()));
|
|
|
kwtLogisticsOrder.setTOrderId(orderDTO.getTradeOrderId());
|
|
|
kwtLogisticsOrder.setTOrderNo(orderDTO.getTradeOrderNo());
|
|
|
@@ -3390,10 +3390,10 @@ public class KwtAcceptCarriageOrderService {
|
|
|
kwtLogisticsOrder.setPayment(x.getPayment());
|
|
|
kwtLogisticsOrder.setRemark(x.getRemark());
|
|
|
kwtLogisticsOrder.setStatus(LogisticsOrderV1Enum.PENDING_ORDER.getCode());
|
|
|
- kwtLogisticsOrder.setCreateBy(LoginUserHolder.getUserId());
|
|
|
+ kwtLogisticsOrder.setCreateBy(orderDTO.getUserId());
|
|
|
Date date = new Date();
|
|
|
kwtLogisticsOrder.setCreateTime(date);
|
|
|
- kwtLogisticsOrder.setUpdateBy(LoginUserHolder.getUserId());
|
|
|
+ kwtLogisticsOrder.setUpdateBy(orderDTO.getUserId());
|
|
|
kwtLogisticsOrder.setUpdateTime(date);
|
|
|
kwtLogisticsOrder.setBindStatus(String.valueOf(NumberConstant.ZERO));
|
|
|
saveLogisticsOrderList.add(kwtLogisticsOrder);
|