|
@@ -253,9 +253,9 @@ public class KwtTransportCommonService {
|
|
|
vo.setLoadAddressDetail(loadAddress.getDetailAddress());
|
|
vo.setLoadAddressDetail(loadAddress.getDetailAddress());
|
|
|
KwtLogisticsOrderAmount orderAmount = logisticsOrderAmountMapper.selectOne(
|
|
KwtLogisticsOrderAmount orderAmount = logisticsOrderAmountMapper.selectOne(
|
|
|
new LambdaQueryWrapper<KwtLogisticsOrderAmount>()
|
|
new LambdaQueryWrapper<KwtLogisticsOrderAmount>()
|
|
|
- .eq(KwtLogisticsOrderAmount::getLOrderId, loadAddress.getLOrderId())
|
|
|
|
|
- .eq(KwtLogisticsOrderAmount::getLAddressId, loadAddress.getId())
|
|
|
|
|
- .eq(KwtLogisticsOrderAmount::getDelFlag, 0)
|
|
|
|
|
|
|
+ .eq(KwtLogisticsOrderAmount::getLOrderId, loadAddress.getLOrderId())
|
|
|
|
|
+ .eq(KwtLogisticsOrderAmount::getLAddressId, loadAddress.getId())
|
|
|
|
|
+ .eq(KwtLogisticsOrderAmount::getDelFlag, 0)
|
|
|
);
|
|
);
|
|
|
vo.setLoadAmount(orderAmount != null ? orderAmount.getAmount() : new BigDecimal("0.00"));
|
|
vo.setLoadAmount(orderAmount != null ? orderAmount.getAmount() : new BigDecimal("0.00"));
|
|
|
loadAddressList.add(vo);
|
|
loadAddressList.add(vo);
|
|
@@ -406,9 +406,7 @@ public class KwtTransportCommonService {
|
|
|
|
|
|
|
|
|
|
|
|
|
List<LineFreightRateVo> lineFreightRateVos = kwtLogisticsOrderLineFreightRateMapper.selectListByOrderId(Long.parseLong(dto.getId()));
|
|
List<LineFreightRateVo> lineFreightRateVos = kwtLogisticsOrderLineFreightRateMapper.selectListByOrderId(Long.parseLong(dto.getId()));
|
|
|
- if (CollectionUtils.isNotEmpty(lineFreightRateVos)) {
|
|
|
|
|
- orderDetailVO.setLineFreightNameList(lineFreightRateVos.stream().map(LineFreightRateVo::getLineFreightName).collect(Collectors.toList()));
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ orderDetailVO.setLineFreightRate(lineFreightRateVos);
|
|
|
|
|
|
|
|
return orderDetailVO;
|
|
return orderDetailVO;
|
|
|
}
|
|
}
|
|
@@ -615,9 +613,9 @@ public class KwtTransportCommonService {
|
|
|
String key = String.valueOf(lOrderId) + "-" + String.valueOf(tOrderAddressId);
|
|
String key = String.valueOf(lOrderId) + "-" + String.valueOf(tOrderAddressId);
|
|
|
if (currentOrderMap.get(key) != null) {
|
|
if (currentOrderMap.get(key) != null) {
|
|
|
logisticsOrderCancelAmountVo.setAmount(logisticsOrderCancelAmountVo.getAmount().subtract(currentOrderMap.get(key)));
|
|
logisticsOrderCancelAmountVo.setAmount(logisticsOrderCancelAmountVo.getAmount().subtract(currentOrderMap.get(key)));
|
|
|
- logisticsOrderAmountMapper.update(null,new LambdaUpdateWrapper<KwtLogisticsOrderAmount>()
|
|
|
|
|
- .set(KwtLogisticsOrderAmount::getEntrustAmount,logisticsOrderCancelAmountVo.getAmount())
|
|
|
|
|
- .eq(KwtLogisticsOrderAmount::getId,logisticsOrderCancelAmountVo.getAmountId())
|
|
|
|
|
|
|
+ logisticsOrderAmountMapper.update(null, new LambdaUpdateWrapper<KwtLogisticsOrderAmount>()
|
|
|
|
|
+ .set(KwtLogisticsOrderAmount::getEntrustAmount, logisticsOrderCancelAmountVo.getAmount())
|
|
|
|
|
+ .eq(KwtLogisticsOrderAmount::getId, logisticsOrderCancelAmountVo.getAmountId())
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -728,14 +726,14 @@ public class KwtTransportCommonService {
|
|
|
KwtLogisticsOrderUnit carrierOrderUnit = logisticsOrderUnitMapper.selectOne(new LambdaQueryWrapper<KwtLogisticsOrderUnit>()
|
|
KwtLogisticsOrderUnit carrierOrderUnit = logisticsOrderUnitMapper.selectOne(new LambdaQueryWrapper<KwtLogisticsOrderUnit>()
|
|
|
.eq(KwtLogisticsOrderUnit::getLOrderId, logisticsOrderDTO.getLOrderId())
|
|
.eq(KwtLogisticsOrderUnit::getLOrderId, logisticsOrderDTO.getLOrderId())
|
|
|
.eq(KwtLogisticsOrderUnit::getUnitType, NumberConstant.TWO));
|
|
.eq(KwtLogisticsOrderUnit::getUnitType, NumberConstant.TWO));
|
|
|
- KwtLogisticsOrderAddress loadOrderAddress = logisticsOrderAddressMapper.selectOne(new LambdaQueryWrapper<KwtLogisticsOrderAddress>()
|
|
|
|
|
- .eq(KwtLogisticsOrderAddress::getLOrderId, logisticsOrderDTO.getLOrderId())
|
|
|
|
|
- .eq(KwtLogisticsOrderAddress::getAddressType, NumberConstant.ONE)
|
|
|
|
|
- );
|
|
|
|
|
- KwtLogisticsOrderAddress unloadOrderAddress = logisticsOrderAddressMapper.selectOne(new LambdaQueryWrapper<KwtLogisticsOrderAddress>()
|
|
|
|
|
- .eq(KwtLogisticsOrderAddress::getLOrderId, logisticsOrderDTO.getLOrderId())
|
|
|
|
|
- .eq(KwtLogisticsOrderAddress::getAddressType, NumberConstant.TWO)
|
|
|
|
|
- );
|
|
|
|
|
|
|
+// KwtLogisticsOrderAddress loadOrderAddress = logisticsOrderAddressMapper.selectOne(new LambdaQueryWrapper<KwtLogisticsOrderAddress>()
|
|
|
|
|
+// .eq(KwtLogisticsOrderAddress::getLOrderId, logisticsOrderDTO.getLOrderId())
|
|
|
|
|
+// .eq(KwtLogisticsOrderAddress::getAddressType, NumberConstant.ONE)
|
|
|
|
|
+// );
|
|
|
|
|
+// KwtLogisticsOrderAddress unloadOrderAddress = logisticsOrderAddressMapper.selectOne(new LambdaQueryWrapper<KwtLogisticsOrderAddress>()
|
|
|
|
|
+// .eq(KwtLogisticsOrderAddress::getLOrderId, logisticsOrderDTO.getLOrderId())
|
|
|
|
|
+// .eq(KwtLogisticsOrderAddress::getAddressType, NumberConstant.TWO)
|
|
|
|
|
+// );
|
|
|
KwtLogisticsOrderContract contract = logisticsOrderContractMapper.selectOne(new LambdaQueryWrapper<KwtLogisticsOrderContract>()
|
|
KwtLogisticsOrderContract contract = logisticsOrderContractMapper.selectOne(new LambdaQueryWrapper<KwtLogisticsOrderContract>()
|
|
|
.eq(KwtLogisticsOrderContract::getLOrderId, logisticsOrderDTO.getLOrderId())
|
|
.eq(KwtLogisticsOrderContract::getLOrderId, logisticsOrderDTO.getLOrderId())
|
|
|
);
|
|
);
|
|
@@ -833,14 +831,14 @@ public class KwtTransportCommonService {
|
|
|
logisticsOrderDTO.setContractNo(contract.getContractNo());
|
|
logisticsOrderDTO.setContractNo(contract.getContractNo());
|
|
|
logisticsOrderDTO.setGoodsPriceLabel(priceDictData.get(logisticsOrderDTO.getPriceType()));
|
|
logisticsOrderDTO.setGoodsPriceLabel(priceDictData.get(logisticsOrderDTO.getPriceType()));
|
|
|
logisticsOrderDTO.setCreateByName(remoteSystemService.queryUserCacheById(logisticsOrderDTO.getCreateBy()) == null ? null : remoteSystemService.queryUserCacheById(logisticsOrderDTO.getCreateBy()).getName());
|
|
logisticsOrderDTO.setCreateByName(remoteSystemService.queryUserCacheById(logisticsOrderDTO.getCreateBy()) == null ? null : remoteSystemService.queryUserCacheById(logisticsOrderDTO.getCreateBy()).getName());
|
|
|
- logisticsOrderDTO.setLoadAddress(loadOrderAddress.getDetailAddress());
|
|
|
|
|
- logisticsOrderDTO.setLoadName(loadOrderAddress.getName());
|
|
|
|
|
- logisticsOrderDTO.setLoadContacts(loadOrderAddress.getContacts());
|
|
|
|
|
- logisticsOrderDTO.setLoadPhone(loadOrderAddress.getPhone());
|
|
|
|
|
- logisticsOrderDTO.setUnloadAddress(unloadOrderAddress.getDetailAddress());
|
|
|
|
|
- logisticsOrderDTO.setUnloadName(unloadOrderAddress.getName());
|
|
|
|
|
- logisticsOrderDTO.setUnloadContacts(unloadOrderAddress.getContacts());
|
|
|
|
|
- logisticsOrderDTO.setUnloadPhone(unloadOrderAddress.getPhone());
|
|
|
|
|
|
|
+// logisticsOrderDTO.setLoadAddress(loadOrderAddress.getDetailAddress());
|
|
|
|
|
+// logisticsOrderDTO.setLoadName(loadOrderAddress.getName());
|
|
|
|
|
+// logisticsOrderDTO.setLoadContacts(loadOrderAddress.getContacts());
|
|
|
|
|
+// logisticsOrderDTO.setLoadPhone(loadOrderAddress.getPhone());
|
|
|
|
|
+// logisticsOrderDTO.setUnloadAddress(unloadOrderAddress.getDetailAddress());
|
|
|
|
|
+// logisticsOrderDTO.setUnloadName(unloadOrderAddress.getName());
|
|
|
|
|
+// logisticsOrderDTO.setUnloadContacts(unloadOrderAddress.getContacts());
|
|
|
|
|
+// logisticsOrderDTO.setUnloadPhone(unloadOrderAddress.getPhone());
|
|
|
logisticsOrderDTO.setCarrierCompany(carrierOrderUnit == null ? null : carrierOrderUnit.getFirmName());
|
|
logisticsOrderDTO.setCarrierCompany(carrierOrderUnit == null ? null : carrierOrderUnit.getFirmName());
|
|
|
logisticsOrderDTO.setCarrierPhone(carrierOrderUnit == null ? null : carrierOrderUnit.getPhone());
|
|
logisticsOrderDTO.setCarrierPhone(carrierOrderUnit == null ? null : carrierOrderUnit.getPhone());
|
|
|
logisticsOrderDTO.setCarrierContacts(carrierOrderUnit == null ? null : carrierOrderUnit.getContacts());
|
|
logisticsOrderDTO.setCarrierContacts(carrierOrderUnit == null ? null : carrierOrderUnit.getContacts());
|
|
@@ -1013,7 +1011,7 @@ public class KwtTransportCommonService {
|
|
|
new LambdaQueryWrapper<KwtWaybillOrderSubtask>()
|
|
new LambdaQueryWrapper<KwtWaybillOrderSubtask>()
|
|
|
.eq(KwtWaybillOrderSubtask::getLOrderId, Long.parseLong(orderId))
|
|
.eq(KwtWaybillOrderSubtask::getLOrderId, Long.parseLong(orderId))
|
|
|
.eq(KwtWaybillOrderSubtask::getDelFlag, 0)
|
|
.eq(KwtWaybillOrderSubtask::getDelFlag, 0)
|
|
|
- .in(KwtWaybillOrderSubtask::getStatus,orderStatus)).intValue());
|
|
|
|
|
|
|
+ .in(KwtWaybillOrderSubtask::getStatus, orderStatus)).intValue());
|
|
|
orderFinishVO.setUnit(logisticsOrder.getUnit());
|
|
orderFinishVO.setUnit(logisticsOrder.getUnit());
|
|
|
orderFinishVO.setUnitName(unitMap != null ? unitMap.get(logisticsOrder.getUnit()) : null);
|
|
orderFinishVO.setUnitName(unitMap != null ? unitMap.get(logisticsOrder.getUnit()) : null);
|
|
|
orderFinishVO.setAmount(logisticsOrder.getAmount());
|
|
orderFinishVO.setAmount(logisticsOrder.getAmount());
|