yujian
2019-11-11 fdb089cb8bee6099efcbd7b0ca2672c63cbb6784
fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopGoodsServiceImpl.java
@@ -154,6 +154,18 @@
      if (setList != null)
         for (BanLiShopGoodsSets set : setList)
            banLiShopGoodsSetService.deleteByPrimaryKey(set.getId());
   }
   @Override
   public void addSalesCount(Long id, int count) {
      BanLiShopGoods goods = selectByPrimaryKey(id);
      if (goods != null) {
         BanLiShopGoods update = new BanLiShopGoods(id);
         update.setSalesCount(goods.getSalesCount() + count);
         update.setUpdateTime(new Date());
         updateSelectiveByPrimaryKey(goods);
      }
   }
}