解决实时库存查询为null的bug

This commit is contained in:
季圣华
2023-08-11 18:49:05 +08:00
parent c4408fbc57
commit 7fe29e082a

View File

@@ -1216,7 +1216,8 @@ public class DepotItemService {
}
public BigDecimal getCurrentStockByParam(Long depotId, Long mId) {
return depotItemMapperEx.getCurrentStockByParam(depotId, mId);
BigDecimal stock = depotItemMapperEx.getCurrentStockByParam(depotId, mId);
return stock!=null? stock: BigDecimal.ZERO;
}
}