diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillServiceImpl.java b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillServiceImpl.java index cfc105be9..6ba7529ed 100644 --- a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillServiceImpl.java +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillServiceImpl.java @@ -1755,7 +1755,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb calcWaybillFee(checkFeeWaybill); - if(checkFeeWaybill.getFreight().compareTo(emisWaybillSave.getFreight()) !=0 ){ + if(checkFeeWaybill.getFreight().compareTo(emisWaybillSave.getFreight()) > 0 ){ throw new EmisBizError(EmisBizErrorType.FAIL, "费用异常,请检查运费!"); } } @@ -3182,7 +3182,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb calcWaybillFee(checkFeeWaybill); - if(checkFeeWaybill.getFreight().compareTo(emisWaybillSave.getFreight()) !=0 ){ + if(checkFeeWaybill.getFreight().compareTo(emisWaybillSave.getFreight()) > 0 ){ throw new EmisBizError(EmisBizErrorType.FAIL, "费用异常,请检查运费!"); } } @@ -3643,7 +3643,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb calcWaybillFee(checkFeeWaybill); - if(checkFeeWaybill.getFreight().compareTo(emisWaybillSave.getFreight()) !=0 ){ + if(checkFeeWaybill.getFreight().compareTo(emisWaybillSave.getFreight()) > 0 ){ throw new EmisBizError(EmisBizErrorType.FAIL, "费用异常,请检查运费!"); } }