商品列表报错问题

This commit is contained in:
2024-11-20 14:46:55 +08:00
parent af8934dcba
commit 19b78079a4

View File

@@ -219,7 +219,7 @@ public class TbProductServiceImpl implements TbProductService {
tbProductVo.setRealSalesNumber(0.00);
} else {
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) {
BigDecimal bigDecimal = (BigDecimal) o[0];
tbProductVo.setRealSalesNumber(bigDecimal.doubleValue());