diff --git a/ssjygl-xsx-service/src/main/java/com/cowr/service/ssjygl/order/ordercluster/OrderclusterSyncService.java b/ssjygl-xsx-service/src/main/java/com/cowr/service/ssjygl/order/ordercluster/OrderclusterSyncService.java index b9bce7d..b0e927d 100644 --- a/ssjygl-xsx-service/src/main/java/com/cowr/service/ssjygl/order/ordercluster/OrderclusterSyncService.java +++ b/ssjygl-xsx-service/src/main/java/com/cowr/service/ssjygl/order/ordercluster/OrderclusterSyncService.java @@ -979,7 +979,7 @@ public class OrderclusterSyncService extends BaseSyncService { if (total_weight.compareTo(surplus_weight) >= 0) { oldobj.setTotalWeight(over_weight); // 将总量设置成和已完成量一样,就是将余量设置为 0 了 } else { - oldobj.setTotalWeight(surplus_weight.subtract(total_weight)); // 结转不完的,要留下 + oldobj.setTotalWeight(over_weight.add(surplus_weight.subtract(total_weight))); // 结转不完的,要留下 } List octs = OrderclusterTruck.dao.find("select * from ordercluster_truck t where t.ordercluster_id = ?", ordercluster_id); @@ -1149,7 +1149,7 @@ public class OrderclusterSyncService extends BaseSyncService { if (total_weight.compareTo(surplus_weight) >= 0) { oldobj.setTotalWeight(over_weight); // 将总量设置成和已完成量一样,就是将余量设置为 0 了 } else { - oldobj.setTotalWeight(surplus_weight.subtract(total_weight)); // 结转不完的,要留下 + oldobj.setTotalWeight(over_weight.add(surplus_weight.subtract(total_weight))); // 结转不完的,要留下 } String[] truckarr = trucks.split(",");