|
|
@@ -1747,6 +1747,12 @@ public class KwoTradeOrderService {
|
|
|
vo.setActualPrice(actualAmount.multiply(unitPrice).setScale(2, RoundingMode.HALF_UP)).setUnitPrice(setScale(e.getUnitPrice())).setPrice(setScale(e.getPrice())).setUnit(e.getUnit()).setUnitLabel(unitType == null ? e.getUnit() : (unitType.get(e.getUnit()) == null ? e.getUnit() : unitType.get(e.getUnit()).getLabel())).setAmount(setScale(vo.getAmount())).setEntrustAmount(setScale(e.getEntrustAmount())).setActualAmount(setScale(e.getActualAmount())).setCreateByName(Objects.isNull(userCache) ? null : userCache.getName());
|
|
|
vo.setDeliveryTypeLabel(DictEnum.getLabel(DictTypeEnum.LOAD_UNLOAD_WAY.getType(), String.valueOf(e.getChargeType())));
|
|
|
vo.setAddVehicles(e.getAddVehicles());
|
|
|
+ if (Objects.equals(e.getChargeType(), 1)) { //按装货量
|
|
|
+ vo.setDealAmount(e.getLoadAmount());
|
|
|
+ } else {
|
|
|
+ vo.setDealAmount(e.getUnloadAmount());
|
|
|
+ }
|
|
|
+
|
|
|
loadAddress.ifPresent(d -> {
|
|
|
vo.setLoadName(d.getName());
|
|
|
vo.setLoadAddress(d.getCityName() + " " + d.getDetailAddress());
|