From cc6db32ede753d1e0c7859550e69425de49a831c Mon Sep 17 00:00:00 2001 From: "lisai17@sina.com" Date: Wed, 4 Nov 2020 20:18:32 +0800 Subject: [PATCH] . --- .../ssjygl/order/ordercluster/OrderclusterSyncService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(",");