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); } } }