yujian
2020-05-23 28cf328a098334b51a3e9d2d56f983fb8c862211
fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CollectionGoodsV2ServiceImpl.java
@@ -5,7 +5,6 @@
import javax.annotation.Resource;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -35,7 +34,7 @@
   @Resource
   private CommonGoodsService commonGoodsService;
   @Transactional
   @Transactional(rollbackFor=Exception.class)
   @Override
   public void addCollection(Long uid, TaoBaoGoodsBrief goods) throws CollectionGoodsException {
      if (uid == null || uid == 0)
@@ -66,7 +65,7 @@
   }
   
   @Transactional
   @Transactional(rollbackFor=Exception.class)
   @Override
   public void addJDCollection(Long uid, JDGoods jdGoods) throws CollectionGoodsException {
      if (uid == null || uid == 0)
@@ -97,7 +96,7 @@
   }
   
   
   @Transactional
   @Transactional(rollbackFor=Exception.class)
   @Override
   public void addPDDCollection(Long uid, PDDGoodsDetail goods) throws CollectionGoodsException {
      if (uid == null || uid == 0)
@@ -149,7 +148,7 @@
      collectionGoodsV2Mapper.insertSelective(goods);
   }
   @Transactional
   @Transactional(rollbackFor=Exception.class)
   @Override
   public void cancelCollection(Long uid, Long id) throws CollectionGoodsException {
      if (uid == null || uid == 0)
@@ -167,13 +166,13 @@
   }
   @Override
   public List<CollectionGoodsV2> getCollectionGoodsList(Long uid, int page, int pageSize, Integer source) {
      return collectionGoodsV2Mapper.selectByUidOrderByCreateTimeDesc(uid, (page - 1) * pageSize, pageSize, source);
   public List<CollectionGoodsV2> getCollectionGoodsList(Long uid, int page, int pageSize, Integer source, boolean notBackSuVip) {
      return collectionGoodsV2Mapper.selectByUidOrderByCreateTimeDesc(uid, (page - 1) * pageSize, pageSize, source, notBackSuVip);
   }
   @Override
   public long getCollectionGoodsCount(Long uid, Integer source) {
      return collectionGoodsV2Mapper.selectCountByUid(uid, source);
   public long getCollectionGoodsCount(Long uid, Integer source, boolean notBackSuVip) {
      return collectionGoodsV2Mapper.selectCountByUid(uid, source, notBackSuVip);
   }
   @Override