Browse Source

处理产品关联商品计数不准确的问题

hulh 8 years ago
parent
commit
2d4be0108d

+ 1 - 1
src/main/java/com/uas/platform/b2c/prod/commodity/service/impl/GoodsServiceImpl.java

@@ -2885,7 +2885,7 @@ public class GoodsServiceImpl implements GoodsService {
             if (!StringUtils.isEmpty(goods.getUuid())) {
                 uuids.add(goods.getUuid());
             }
-            if (goods.getProductid() == null) {
+            if (goods.getProductid() != null) {
                 Product product = productDao.findOne(goods.getProductid());
                 if (product != null) {
                     Integer count = product.getBatchCount();