This commit is contained in:
linfso 2024-04-29 14:14:31 +08:00
parent be91a85307
commit 6cc197dfe1

View File

@ -391,13 +391,12 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
continue; continue;
} }
// emisWaybill.getTotalVolume(),
// emisWaybill.getSettlementWeight()
EmisWaybillFeeitem feeItem = new EmisWaybillFeeitem(); EmisWaybillFeeitem feeItem = new EmisWaybillFeeitem();
// 重量计费 // 重量计费
if("1".equals(calcFeeType)){ if("1".equals(calcFeeType)){
for (EmisQuoteExpression exprItem: exprList) { for (EmisQuoteExpression exprItem: exprList) {
log.info("计算项目:"+JSONObject.toJSONString(exprItem)+",重量:"+emisWaybill.getSettlementWeight().doubleValue());
if( exprItem.getStartWeight().doubleValue() >= emisWaybill.getSettlementWeight().doubleValue() if( exprItem.getStartWeight().doubleValue() >= emisWaybill.getSettlementWeight().doubleValue()
&& exprItem.getEndWeight().doubleValue() <= emisWaybill.getSettlementWeight().doubleValue() && exprItem.getEndWeight().doubleValue() <= emisWaybill.getSettlementWeight().doubleValue()
){ ){