|
@@ -669,7 +669,6 @@ public class KwoTradeOrderService {
|
|
|
throw new BusinessException("不存在该订单!");
|
|
throw new BusinessException("不存在该订单!");
|
|
|
}
|
|
}
|
|
|
Map<String, Map<String, String>> dict = remoteSystemService.queryDictByType(List.of(DictTypeEnum.TRADE_TYPE.getType(), DictTypeEnum.PICKUP_TYPE.getType(), DictTypeEnum.DELIVERY_TYPE.getType(), DictTypeEnum.TORDER_SOURCE.getType(), DictTypeEnum.TORDER_STATUS.getType(), DictTypeEnum.PRODUCT_NAME_TYPE.getType(), DictTypeEnum.UNIT_TYPE.getType(), DictTypeEnum.TAX_RATE.getType(), DictTypeEnum.TORDER_UNIT_TYPE.getType(), DictTypeEnum.TORDER_ADDRESS_TYPE.getType(), DictTypeEnum.ADDRESS_TYPE.getType(), DictTypeEnum.CONSIGNMENT_WAY.getType(), DictTypeEnum.CHARGING_TYPE.getType()));
|
|
Map<String, Map<String, String>> dict = remoteSystemService.queryDictByType(List.of(DictTypeEnum.TRADE_TYPE.getType(), DictTypeEnum.PICKUP_TYPE.getType(), DictTypeEnum.DELIVERY_TYPE.getType(), DictTypeEnum.TORDER_SOURCE.getType(), DictTypeEnum.TORDER_STATUS.getType(), DictTypeEnum.PRODUCT_NAME_TYPE.getType(), DictTypeEnum.UNIT_TYPE.getType(), DictTypeEnum.TAX_RATE.getType(), DictTypeEnum.TORDER_UNIT_TYPE.getType(), DictTypeEnum.TORDER_ADDRESS_TYPE.getType(), DictTypeEnum.ADDRESS_TYPE.getType(), DictTypeEnum.CONSIGNMENT_WAY.getType(), DictTypeEnum.CHARGING_TYPE.getType()));
|
|
|
- Map<String, String> tradeMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
|
|
Map<String, String> pickupMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
Map<String, String> pickupMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
Map<String, String> deleveryMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
Map<String, String> deleveryMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
Map<String, String> sourceMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
Map<String, String> sourceMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
@@ -681,7 +680,6 @@ public class KwoTradeOrderService {
|
|
|
Map<String, String> consignmentWayMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
Map<String, String> consignmentWayMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
Map<String, String> orderUnitMap, orderAddressMap, addressMap;
|
|
Map<String, String> orderUnitMap, orderAddressMap, addressMap;
|
|
|
if (CollUtil.isNotEmpty(dict)) {
|
|
if (CollUtil.isNotEmpty(dict)) {
|
|
|
- tradeMap = dict.get(DictTypeEnum.TRADE_TYPE.getType());
|
|
|
|
|
pickupMap = dict.get(DictTypeEnum.CONSIGNMENT_WAY.getType());
|
|
pickupMap = dict.get(DictTypeEnum.CONSIGNMENT_WAY.getType());
|
|
|
deleveryMap = dict.get(DictTypeEnum.DELIVERY_TYPE.getType());
|
|
deleveryMap = dict.get(DictTypeEnum.DELIVERY_TYPE.getType());
|
|
|
sourceMap = dict.get(DictTypeEnum.TORDER_SOURCE.getType());
|
|
sourceMap = dict.get(DictTypeEnum.TORDER_SOURCE.getType());
|
|
@@ -705,15 +703,15 @@ public class KwoTradeOrderService {
|
|
|
EntCacheResDto ent = remoteSystemService.queryEntCacheById(detail.getEntId());
|
|
EntCacheResDto ent = remoteSystemService.queryEntCacheById(detail.getEntId());
|
|
|
String trading = order.getTrading();
|
|
String trading = order.getTrading();
|
|
|
if (StrUtil.equals(trading, "1")) {
|
|
if (StrUtil.equals(trading, "1")) {
|
|
|
- detail.setPayWayLabel("线上支付");
|
|
|
|
|
|
|
+ detail.setTradingLabel("线上支付");
|
|
|
} else {
|
|
} else {
|
|
|
- detail.setPayWayLabel("线下支付");
|
|
|
|
|
|
|
+ detail.setTradingLabel("线下支付");
|
|
|
}
|
|
}
|
|
|
- detail.setFirmName(Objects.isNull(ent) ? null : ent.getFirmName()).setCreateByName(Objects.isNull(createUser) ? null : createUser.getName()).setTradingLabel(CollUtil.isNotEmpty(tradeMap) ? tradeMap.get(detail.getTrading()) : null).setPickupTypeLabel(CollUtil.isNotEmpty(pickupMap) ? pickupMap.get(detail.getPickupType()) : null).setDeliveryTypeLabel(CollUtil.isNotEmpty(deleveryMap) ? deleveryMap.get(detail.getDeliveryType()) : null).setSourceLabel(CollUtil.isNotEmpty(sourceMap) ? sourceMap.get(detail.getSource()) : null).setStatusLabel(CollUtil.isNotEmpty(statusMap) ? statusMap.get(String.valueOf(detail.getStatus())) : null).setChargeTypeLabel(CollUtil.isNotEmpty(chargeTypeMap) ? chargeTypeMap.get(String.valueOf(detail.getChargeType())) : null).setConsignmentWayLabel(CollUtil.isNotEmpty(consignmentWayMap) ? consignmentWayMap.get(String.valueOf(detail.getConsignmentWay())) : null);
|
|
|
|
|
|
|
+ detail.setFirmName(Objects.isNull(ent) ? null : ent.getFirmName()).setCreateByName(Objects.isNull(createUser) ? null : createUser.getName()).setPickupTypeLabel(CollUtil.isNotEmpty(pickupMap) ? pickupMap.get(detail.getPickupType()) : null).setDeliveryTypeLabel(CollUtil.isNotEmpty(deleveryMap) ? deleveryMap.get(detail.getDeliveryType()) : null).setSourceLabel(CollUtil.isNotEmpty(sourceMap) ? sourceMap.get(detail.getSource()) : null).setStatusLabel(CollUtil.isNotEmpty(statusMap) ? statusMap.get(String.valueOf(detail.getStatus())) : null).setChargeTypeLabel(CollUtil.isNotEmpty(chargeTypeMap) ? chargeTypeMap.get(String.valueOf(detail.getChargeType())) : null).setConsignmentWayLabel(CollUtil.isNotEmpty(consignmentWayMap) ? consignmentWayMap.get(String.valueOf(detail.getConsignmentWay())) : null);
|
|
|
if (Objects.equals(detail.getChargeType(), 1)) {//按装货量
|
|
if (Objects.equals(detail.getChargeType(), 1)) {//按装货量
|
|
|
- detail.setActualAmount(detail.getLoadAmount());
|
|
|
|
|
|
|
+ detail.setDealAmount(detail.getLoadAmount());
|
|
|
} else {
|
|
} else {
|
|
|
- detail.setActualAmount(detail.getUnloadAmount());
|
|
|
|
|
|
|
+ detail.setDealAmount(detail.getUnloadAmount());
|
|
|
}
|
|
}
|
|
|
//商品信息
|
|
//商品信息
|
|
|
KwoTradeOrderGoods orderGoods = kwoTradeOrderGoodsService.getByOrderId(id);
|
|
KwoTradeOrderGoods orderGoods = kwoTradeOrderGoodsService.getByOrderId(id);
|
|
@@ -1583,7 +1581,6 @@ public class KwoTradeOrderService {
|
|
|
sourceMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
sourceMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
unloadMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
unloadMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
list.forEach(e -> {
|
|
list.forEach(e -> {
|
|
|
//装货地址
|
|
//装货地址
|
|
|
List<KwoTradeOrderAddress> loadAddresses = kwoTradeOrderAddressService.findByAddress(e.getTOrderId(), AddressTypeEnum.SHIPMENT.getCode());
|
|
List<KwoTradeOrderAddress> loadAddresses = kwoTradeOrderAddressService.findByAddress(e.getTOrderId(), AddressTypeEnum.SHIPMENT.getCode());
|