This commit is contained in:
linfso 2024-05-26 17:28:05 +08:00
parent 9afabd812b
commit 59f2ad5854

View File

@ -617,15 +617,15 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
}
if(emisWaybill.getBillWeight().floatValue()<=0.0f){
if(emisWaybill.getBillWeight()==null || emisWaybill.getBillWeight().floatValue()<=0.0f){
emisWaybill.setBillWeight(BigDecimal.ZERO);
}
if(emisWaybill.getTotalVolume().floatValue()<=0.0f){
if(emisWaybill.getTotalVolume()==null || emisWaybill.getTotalVolume().floatValue()<=0.0f){
emisWaybill.setTotalVolume(BigDecimal.ZERO);
}
if(emisWaybill.getSettlementWeight().floatValue()<=0.0f){
if(emisWaybill.getSettlementWeight()==null || emisWaybill.getSettlementWeight().floatValue()<=0.0f){
emisWaybill.setSettlementWeight(BigDecimal.ZERO);
}
@ -800,11 +800,11 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
}
if(emisWaybill.getBillWeight().floatValue()<=0.0f){
if(emisWaybill.getBillWeight()==null || emisWaybill.getBillWeight().floatValue()<=0.0f ){
emisWaybill.setBillWeight(BigDecimal.ZERO);
}
if(emisWaybill.getTotalVolume()==null || (emisWaybill.getTotalVolume()!=null && emisWaybill.getTotalVolume().floatValue()<=0.0f) ){
if(emisWaybill.getTotalVolume()==null || emisWaybill.getTotalVolume().floatValue()<=0.0f ){
emisWaybill.setTotalVolume(BigDecimal.ZERO);
}