This commit is contained in:
linfso 2025-07-03 12:46:43 +08:00
parent 676398989c
commit 7173a98fbd

View File

@ -3503,11 +3503,11 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
log.error("费用异常,请检查运费=111=>check:{},new:{}",
checkFeeWaybill.getFreight().setScale(0).stripTrailingZeros().toPlainString(),
emisWaybillSave.getFreight().setScale(0).stripTrailingZeros().toPlainString()
checkFeeWaybill.getFreight().setScale(2,BigDecimal.ROUND_HALF_UP).stripTrailingZeros().toPlainString(),
emisWaybillSave.getFreight().setScale(2,BigDecimal.ROUND_HALF_UP).stripTrailingZeros().toPlainString()
);
if( emisWaybillSave.getFreight().setScale(0).doubleValue() < checkFeeWaybill.getFreight().setScale(0).doubleValue() ){
if( emisWaybillSave.getFreight().setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue() < checkFeeWaybill.getFreight().setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue() ){
throw new EmisBizError(EmisBizErrorType.FAIL, "费用异常,请检查运费!");
}