yujian
2019-05-29 0588d6be74335f41c79a8d8e32dbd1c3d3e47fa3
fanli/src/main/java/com/yeshi/fanli/service/impl/goods/TaoBaoGoodsBriefServiceImpl.java
@@ -5,6 +5,7 @@
import javax.annotation.Resource;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import com.yeshi.fanli.dao.mybatis.taobao.TaoBaoGoodsBriefMapper;
@@ -48,16 +49,29 @@
      BigDecimal rate = hongBaoManageService.getShareRate();
      return TaoBaoUtil.getShareGoodsHongBaoInfo(goods, rate);
   }
   @Override
   public void deleteByPrimaryKey(Long id) {
      taoBaoGoodsBriefMapper.deleteByPrimaryKey(id);
   }
   @Override
   public void deleteBatchByGoodsId(List<Long> list) {
      taoBaoGoodsBriefMapper.deleteBatchByGoodsId(list);
   }
   @Override
   public List<TaoBaoGoodsBrief> queryByAuctionId(Long auctionId) {
      return taoBaoGoodsBriefMapper.queryByAuctionId(auctionId);
   }
   @Override
   public List<TaoBaoGoodsBrief> listQueryByAuctionId(List<Long> list) {
   public List<Long> listExistById(List<Long> list) {
      if (list != null && list.size() > 0)
         return taoBaoGoodsBriefMapper.queryGoodsByAuctionId(list);
         return taoBaoGoodsBriefMapper.listExistById(list);
      else
         return null;
   }
@@ -193,10 +207,9 @@
      return taoBaoGoodsBriefMapper.listByShopId(start, count, shopId);
   }
   
   @Override
   public long countByShopId(Long shopId) {
      return taoBaoGoodsBriefMapper.countByShopId(shopId);
   }
}