This commit is contained in:
linfso 2025-07-11 10:15:46 +08:00
parent 4ff754cfaf
commit 8ce28d94a3

View File

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