This commit is contained in:
linfso 2025-07-03 14:17:30 +08:00
parent 7173a98fbd
commit e253498595

View File

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