md
This commit is contained in:
parent
7173a98fbd
commit
e253498595
@ -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, "费用异常,请检查运费!");
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user