商品列表报错问题
This commit is contained in:
@@ -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 (o[1] != null && ((Integer) o[1]).equals(product.getId())) {
|
if (o[1] != null && (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());
|
||||||
|
|||||||
Reference in New Issue
Block a user