商品列表报错问题
This commit is contained in:
parent
c1d3760845
commit
af8934dcba
|
|
@ -219,7 +219,7 @@ public class TbProductServiceImpl implements TbProductService {
|
||||||
tbProductVo.setRealSalesNumber(0.00);
|
tbProductVo.setRealSalesNumber(0.00);
|
||||||
} else {
|
} else {
|
||||||
for (Object[] o : objects) {
|
for (Object[] o : objects) {
|
||||||
if (((Integer) o[1]).equals(product.getId())) {
|
if (o[1] != null && ((Integer) o[1]).equals(product.getId())) {
|
||||||
if (o[0] != null) {
|
if (o[0] != null) {
|
||||||
BigDecimal bigDecimal = (BigDecimal) o[0];
|
BigDecimal bigDecimal = (BigDecimal) o[0];
|
||||||
tbProductVo.setRealSalesNumber(bigDecimal.doubleValue());
|
tbProductVo.setRealSalesNumber(bigDecimal.doubleValue());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue