|
|
@@ -1058,7 +1058,7 @@ public class KwtWaybillOrderService {
|
|
|
KwtLogisticsOrder logisticsOrder = logisticsOrderDao.selectById(circulate.getLOrderId());
|
|
|
//剩余未派量=上级委派量-分包量-下级委派量
|
|
|
BigDecimal residue = logisticsOrder.getAmount().subtract(logisticsOrder.getEntrustAmount()).subtract(logisticsOrder.getSubcontractAmount());
|
|
|
- if (logisticsOrder.getStatus() != LogisticsOrderEnum.IN_TRANSIT.getCode() || residue.compareTo(new BigDecimal(Global.AMOUNT)) >= 0) {
|
|
|
+ if (logisticsOrder.getStatus() != LogisticsOrderEnum.IN_TRANSIT.getCode() || residue.compareTo(new BigDecimal(Global.AMOUNT)) <= 0) {
|
|
|
return HttpResult.error("已不能接单!");
|
|
|
}
|
|
|
|