This commit is contained in:
linfso 2024-04-29 17:53:31 +08:00
parent fbb725e4be
commit 3dfef50536

View File

@ -356,7 +356,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
* 计算逻辑,获取表达式进行计算
*/
if(isAnyEmpty(emisWaybill.getProductType(),
if(StringUtils.isAnyEmpty(emisWaybill.getProductType(),
emisWaybill.getSendSiteCode(),
emisWaybill.getDispatchUnderlingSiteCode(),
emisWaybill.getCalcFeeType()
@ -460,14 +460,14 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
@Override
public void calcSettledWeight(EmisWaybill emisWaybill) throws CalcException {
if(
isAnyEmpty(emisWaybill.getProductType(),
emisWaybill.getTransLineType(),
emisWaybill.getBillWeight(),
emisWaybill.getTotalVolume()
)
){
throw new CalcException("E2001","参数不完整");
if (
StringUtils.isAnyEmpty(emisWaybill.getProductType(), emisWaybill.getTransLineType())
|| emisWaybill.getBillWeight() == null
|| emisWaybill.getTotalVolume() == null
)
{
throw new CalcException("E2001", "参数不完整");
}
double billWeight=emisWaybill.getBillWeight().doubleValue();