统计功能更新

dev
徐杰盟 2024-03-08 14:51:37 +08:00
parent 8845492d46
commit 3a641ecf65
1 changed files with 4 additions and 2 deletions

View File

@ -592,8 +592,10 @@ public class OrderclusterSyncService extends BaseSyncService {
}
// 客户在所有砂站的未完成的配额中,未执行完成的总金额
BigDecimal undo_price = OrderclusterService.me.undoPrice(model.getCustomerId(), 1);
BigDecimal plan_total_price = model.getTotalWeight().multiply(unitprice).add(undo_price).setScale(2, BigDecimal.ROUND_HALF_UP); // 本次配额总价格
// BigDecimal undo_price = OrderclusterService.me.undoPrice(model.getCustomerId(), 1);
// BigDecimal plan_total_price = model.getTotalWeight().multiply(unitprice).add(undo_price).setScale(2, BigDecimal.ROUND_HALF_UP); // 本次配额总价格
BigDecimal plan_total_price = model.getTotalWeight().multiply(unitprice).setScale(2, BigDecimal.ROUND_HALF_UP); // 本次配额总价格
// 本次计划总额加上未完成的量,不能超过余额
if (plan_total_price.compareTo(surplus) > 0) {