md
This commit is contained in:
parent
4ff754cfaf
commit
8ce28d94a3
@ -758,8 +758,8 @@ public class EmisTmsCostFeeServiceImpl extends EmisBaseService implements IEmisT
|
|||||||
splitItem.setFeeItemId(-1L); // 无成本费用项来源
|
splitItem.setFeeItemId(-1L); // 无成本费用项来源
|
||||||
splitItem.setSplitValue(waybill.getSettlementWeight()); // 分摊重量
|
splitItem.setSplitValue(waybill.getSettlementWeight()); // 分摊重量
|
||||||
|
|
||||||
// 总费用=单价*公里数
|
//总费用 固定值
|
||||||
BigDecimal totalDbCostFee = quotePriceItem.getPrice().multiply(transWeight);
|
BigDecimal totalDbCostFee = quotePriceItem.getFee();
|
||||||
|
|
||||||
String itemCalcExpr = quotePriceItem.getCalculateExpression();
|
String itemCalcExpr = quotePriceItem.getCalculateExpression();
|
||||||
|
|
||||||
@ -770,7 +770,6 @@ public class EmisTmsCostFeeServiceImpl extends EmisBaseService implements IEmisT
|
|||||||
Map<String, Object> env = new HashMap<>();
|
Map<String, Object> env = new HashMap<>();
|
||||||
env.put("w", waybill.getSettlementWeight());
|
env.put("w", waybill.getSettlementWeight());
|
||||||
env.put("t", transWeight);
|
env.put("t", transWeight);
|
||||||
env.put("d", quotePriceItem.getPrice());
|
|
||||||
env.put("c", totalDbCostFee);
|
env.put("c", totalDbCostFee);
|
||||||
double costFee = Double.valueOf(AviatorEvaluator.execute(itemCalcExpr,env).toString());
|
double costFee = Double.valueOf(AviatorEvaluator.execute(itemCalcExpr,env).toString());
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user