|
|
@@ -743,10 +743,11 @@ public class ConsignOrderService {
|
|
|
// if (totalLoadAmount.compareTo(orderFinishDTO.getLoadAmount()) < 0) {
|
|
|
// throw new BusinessException("完结订单,实装量不能大于分配量");
|
|
|
// }
|
|
|
- BigDecimal amount = logisticsOrder.getAmount() == null ? new BigDecimal("0.00") : logisticsOrder.getAmount();
|
|
|
- if (amount.compareTo(orderFinishDTO.getLoadAmount()) < 0) {
|
|
|
- throw new BusinessException("完结订单,装货量不能大于运输总量");
|
|
|
- }
|
|
|
+ //todo 2023-09-01 根据要求去除校验 物流订单手动完结,实装量可大于分配量,实卸量目前暂定不可大于实装量;根据计费方式,当对应实装或实卸大于分配量时自然完结
|
|
|
+// BigDecimal amount = logisticsOrder.getAmount() == null ? new BigDecimal("0.00") : logisticsOrder.getAmount();
|
|
|
+// if (amount.compareTo(orderFinishDTO.getLoadAmount()) < 0) {
|
|
|
+// throw new BusinessException("完结订单,装货量不能大于运输总量");
|
|
|
+// }
|
|
|
if (orderFinishDTO.getUnloadAmount().compareTo(orderFinishDTO.getLoadAmount()) > 0) {
|
|
|
throw new BusinessException("完结订单,填写卸货量不能大于装货量");
|
|
|
}
|
|
|
@@ -1270,7 +1271,7 @@ public class ConsignOrderService {
|
|
|
loadAddress.setId(new IdWorker(NumberConstant.ONE).nextId());
|
|
|
loadAddress.setLOrderId(lOrderId);
|
|
|
loadAddress.setAddressType(NumberConstant.ONE);
|
|
|
-// loadAddress.setName();
|
|
|
+ loadAddress.setName(addOrderDTO.getLoadName() == null ? null : addOrderDTO.getLoadName());
|
|
|
// loadAddress.setType();
|
|
|
loadAddress.setContacts(addOrderDTO.getLoadContacts());
|
|
|
loadAddress.setPhone(addOrderDTO.getLoadPhone());
|
|
|
@@ -1291,7 +1292,7 @@ public class ConsignOrderService {
|
|
|
unloadAddress.setId(new IdWorker(NumberConstant.TWO).nextId());
|
|
|
unloadAddress.setLOrderId(lOrderId);
|
|
|
unloadAddress.setAddressType(NumberConstant.TWO);
|
|
|
-// unloadAddress.setName();
|
|
|
+ unloadAddress.setName(addOrderDTO.getUnloadName() == null ? null : addOrderDTO.getUnloadName());
|
|
|
// unloadAddress.setType();
|
|
|
unloadAddress.setContacts(addOrderDTO.getUnloadContacts());
|
|
|
unloadAddress.setPhone(addOrderDTO.getUnloadPhone());
|