admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/LabelGoodsMapper.java
@@ -4,24 +4,13 @@
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.bus.lable.LabelGoods;
   
public interface LabelGoodsMapper {
public interface LabelGoodsMapper extends BaseMapper<LabelGoods>{
   int deleteByPrimaryKey(Long id);
   int insert(LabelGoods record);
   int insertSelective(LabelGoods record);
   LabelGoods selectByPrimaryKey(Long id);
   int updateByPrimaryKeySelective(LabelGoods record);
   int updateByPrimaryKey(LabelGoods record);
   /**
    * 批量插入
    * @param list
@@ -31,8 +20,6 @@
         
   /**
    * 判断是否已贴过标签
    * @param title
    * @param startTime
    * @return
    */
   Long getRelationNum( @Param("labelId") Long labelId);
@@ -46,8 +33,14 @@
   
   
   /**
    * 删除商品多个标签
    */
   void deleteByAuctionIdAndLabIDs(@Param("auctionId")String auctionId, @Param("list") List<Long> list);
   /**
    * 批量删除
    * @param ids
    * @return
    */
   int deleteBatchByPK(List<Long> list);
@@ -55,11 +48,9 @@
   
   /**
    * 判断是否已贴过标签
    * @param title
    * @param startTime
    * @return
    */
   Long isExistence(@Param("goodsId") Long goodsId, @Param("labelId") Long labelId);
   Long isExistence(@Param("goodsId") String goodsId, @Param("labelId") Long labelId);
   
   /**
    * 查询商品当前是否包含 9k9类目
@@ -76,7 +67,7 @@
    * @param goodsId
    * @return
    */
   int getCountByGoodsId(@Param("goodsId") Long goodsId);
   int getCountByGoodsId(@Param("goodsId") String goodsId);
   
   
   /**
@@ -84,9 +75,9 @@
    * @param record
    * @return
    */
   List<LabelGoods> queryByGoodsId(@Param("start") int start, @Param("count") int count, @Param("goodsId") Long record);
   List<LabelGoods> queryByGoodsId(@Param("start") int start, @Param("count") int count, @Param("goodsId") String record);
   
   int getCountQueryByGoodsId(@Param("goodsId") Long record);
   int getCountQueryByGoodsId(@Param("goodsId") String record);
   
   
   /**
@@ -94,33 +85,30 @@
    * @param goodsId
    * @return
    */
   int deleteByGoodsId(Long goodsId);
   int deleteByGoodsId(String goodsId);
   
   
   int deleteBatchByGoodsId(List<Long> list);
   int deleteBatchByGoodsId(List<String> list);
   
   
   /**
    * 根据标签id批量删除
    * @param ids
    * @return
    */
   int deleteByLabId(Long labId);
   
   /**
    * 批量删除
    * @param ids
    * @return
    */
   
   int deleteByGoodsIdAndLabId(Long goodsId, Long labId);
   int deleteByGoodsIdAndLabId(String goodsId, Long labId);
   
   
   /**
    * 查询所有数据+条件
    * @param start
    * @param count
    * @param goodsId
    * @param labIds
    * @return
    */