This commit is contained in:
linfso 2024-05-26 17:26:27 +08:00
parent dfd52c389f
commit 9afabd812b

View File

@ -794,7 +794,6 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
emisWaybill.getCustomsEclaration()
)
|| emisWaybill.getBillWeight()==null
|| emisWaybill.getTotalVolume()==null
){
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1, "参数不完整");
@ -805,7 +804,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
emisWaybill.setBillWeight(BigDecimal.ZERO);
}
if(emisWaybill.getTotalVolume().floatValue()<=0.0f){
if(emisWaybill.getTotalVolume()==null || (emisWaybill.getTotalVolume()!=null && emisWaybill.getTotalVolume().floatValue()<=0.0f) ){
emisWaybill.setTotalVolume(BigDecimal.ZERO);
}