统计功能更新
parent
8845492d46
commit
3a641ecf65
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue