|
@@ -1777,6 +1777,7 @@ public class KwtLogisticsOrderConsignmentService {
|
|
|
parentLoadOrderMap = orderLoadAddress.stream().collect(Collectors.toMap(KwtLogisticsOrderAddress::getId, Function.identity()));
|
|
parentLoadOrderMap = orderLoadAddress.stream().collect(Collectors.toMap(KwtLogisticsOrderAddress::getId, Function.identity()));
|
|
|
}
|
|
}
|
|
|
if (!CollectionUtils.isEmpty(loadAddress)) {
|
|
if (!CollectionUtils.isEmpty(loadAddress)) {
|
|
|
|
|
+ int sort = 1;
|
|
|
for (AddressInfoDto address : loadAddress) {
|
|
for (AddressInfoDto address : loadAddress) {
|
|
|
if (address.getAmount().compareTo(new BigDecimal("0.00")) == 0) {
|
|
if (address.getAmount().compareTo(new BigDecimal("0.00")) == 0) {
|
|
|
continue;
|
|
continue;
|
|
@@ -1792,7 +1793,7 @@ public class KwtLogisticsOrderConsignmentService {
|
|
|
loadOrderAddress.setDetailAddress(loadAddressData.getDetailAddress());
|
|
loadOrderAddress.setDetailAddress(loadAddressData.getDetailAddress());
|
|
|
loadOrderAddress.setContacts(loadAddressData.getContacts());
|
|
loadOrderAddress.setContacts(loadAddressData.getContacts());
|
|
|
loadOrderAddress.setLOrderId(orderId);
|
|
loadOrderAddress.setLOrderId(orderId);
|
|
|
- loadOrderAddress.setSort(address.getSort());
|
|
|
|
|
|
|
+ loadOrderAddress.setSort(sort);
|
|
|
loadOrderAddress.setLat(loadAddressData.getLat());
|
|
loadOrderAddress.setLat(loadAddressData.getLat());
|
|
|
loadOrderAddress.setFence(loadAddressData.getFence());
|
|
loadOrderAddress.setFence(loadAddressData.getFence());
|
|
|
loadOrderAddress.setCityName(loadAddressData.getCityName());
|
|
loadOrderAddress.setCityName(loadAddressData.getCityName());
|
|
@@ -1828,6 +1829,7 @@ public class KwtLogisticsOrderConsignmentService {
|
|
|
orderAmount.setUpdateTime(new Date());
|
|
orderAmount.setUpdateTime(new Date());
|
|
|
orderAmount.setDelFlag(0);
|
|
orderAmount.setDelFlag(0);
|
|
|
logisticsOrderAmountMapper.insert(orderAmount);
|
|
logisticsOrderAmountMapper.insert(orderAmount);
|
|
|
|
|
+ sort += 1;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1846,6 +1848,7 @@ public class KwtLogisticsOrderConsignmentService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (!ObjectUtils.isEmpty(unloadAddress)) {
|
|
if (!ObjectUtils.isEmpty(unloadAddress)) {
|
|
|
|
|
+ int sort = 1;
|
|
|
for (AddressInfoDto address : unloadAddress) {
|
|
for (AddressInfoDto address : unloadAddress) {
|
|
|
if (address.getAmount().compareTo(new BigDecimal("0.00")) == 0) {
|
|
if (address.getAmount().compareTo(new BigDecimal("0.00")) == 0) {
|
|
|
continue;
|
|
continue;
|
|
@@ -1877,7 +1880,7 @@ public class KwtLogisticsOrderConsignmentService {
|
|
|
unloadOrderAddress.setLng(loadAddressData.getLng());
|
|
unloadOrderAddress.setLng(loadAddressData.getLng());
|
|
|
unloadOrderAddress.setRemark(loadAddressData.getRemark());
|
|
unloadOrderAddress.setRemark(loadAddressData.getRemark());
|
|
|
unloadOrderAddress.setStatus(loadAddressData.getStatus());
|
|
unloadOrderAddress.setStatus(loadAddressData.getStatus());
|
|
|
- unloadOrderAddress.setSort(address.getSort());
|
|
|
|
|
|
|
+ unloadOrderAddress.setSort(sort);
|
|
|
logisticsOrderAddressMapper.insert(unloadOrderAddress);
|
|
logisticsOrderAddressMapper.insert(unloadOrderAddress);
|
|
|
|
|
|
|
|
KwtLogisticsOrderAmount orderAmount = new KwtLogisticsOrderAmount();
|
|
KwtLogisticsOrderAmount orderAmount = new KwtLogisticsOrderAmount();
|
|
@@ -1898,6 +1901,7 @@ public class KwtLogisticsOrderConsignmentService {
|
|
|
orderAmount.setUpdateTime(new Date());
|
|
orderAmount.setUpdateTime(new Date());
|
|
|
orderAmount.setDelFlag(0);
|
|
orderAmount.setDelFlag(0);
|
|
|
logisticsOrderAmountMapper.insert(orderAmount);
|
|
logisticsOrderAmountMapper.insert(orderAmount);
|
|
|
|
|
+ sort += 1;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|