md
This commit is contained in:
parent
9afabd812b
commit
59f2ad5854
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user