This commit is contained in:
linfso 2024-11-08 17:16:05 +08:00
parent d5251eb6b8
commit df040bf8d4

View File

@ -1634,9 +1634,9 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
} }
// 检查数据 // 检查数据 非其它支付方式运费必须大于0
if(emisWaybillSave.getFreight()==null || emisWaybillSave.getFreight().floatValue()<=0.0f){ if(!"6".equals(emisWaybillSave.getPaymentType()) && ( emisWaybillSave.getFreight()==null || emisWaybillSave.getFreight().floatValue()<=0.0f ) ){
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"运费必须大于0"); throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"非其它支付方式运费必须大于0");
} }