From f4a0f2acc63d7785eab108419a4e16f5f688cb95 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期六, 18 一月 2020 12:06:27 +0800 Subject: [PATCH] 用户注册信息 --- fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandClassShopMapper.java | 149 ++++++++++++++++++++++++++----------------------- 1 files changed, 79 insertions(+), 70 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandClassShopMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandClassShopMapper.java index 0ba189f..26fbc52 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandClassShopMapper.java +++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandClassShopMapper.java @@ -1,71 +1,80 @@ -package com.yeshi.fanli.dao.mybatis.brand; - -import java.util.List; - -import org.apache.ibatis.annotations.Param; - -import com.yeshi.fanli.dao.BaseMapper; -import com.yeshi.fanli.entity.brand.BrandClassShop; - -public interface BrandClassShopMapper extends BaseMapper<BrandClassShop>{ - - /** - * 鏌ヨ鏈夋晥 - * @param start - * @param count - * @param cid - * @return - */ - List<BrandClassShop> listEffective(@Param("start") long start, @Param("count") int count, @Param("cid") Long cid); - - long countEffective(@Param("cid") Long cid); - - - List<BrandClassShop> getExistByShopIds(List<Long> list); - - /** - * 鏍规嵁搴楅摵id - * @param cid - * @param shopId - * @return - */ - BrandClassShop getByShopId(@Param("shopId") Long shopId); - - /** - * 鏍规嵁搴楅摵id銆佸垎绫籭d鏌ヨ - * @param cid - * @param shopId - * @return - */ - BrandClassShop getByShopIdAndCid(@Param("cid") Long cid, @Param("shopId") Long shopId); - - /** - * 鏍规嵁鍒嗙被鏌ヨ鎺掑簭 - * @param cid - * @return - */ - int getMaxOrder(@Param("cid") Long cid); - - /** - * 鎺掑簭浜ゆ崲 - * @param order - * @param type - * @return - */ - BrandClassShop getByAdjoinOrder(@Param("cid") Long cid, @Param("order") Integer order, @Param("type") Integer type); - - /** - * 鏌ヨ鍒楄〃 - * @param start - * @param count - * @param key - * @param state - * @return - */ - public List<BrandClassShop> listQuery(@Param("start") long start,@Param("count") int count, - @Param("key")String key, @Param("cid") Long cid,@Param("state") Integer state); - - public long countQuery(@Param("key")String key, @Param("cid") Long cid,@Param("state") Integer state); - - +package com.yeshi.fanli.dao.mybatis.brand; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; + +import com.yeshi.fanli.dao.BaseMapper; +import com.yeshi.fanli.entity.brand.BrandClassShop; + +public interface BrandClassShopMapper extends BaseMapper<BrandClassShop>{ + + + /** + * 鏍规嵁鍒嗙被id鎵归噺鍒犻櫎 + * @param list + * @return + */ + int deleteBatchByClassId(List<Long> list); + + + /** + * 鏌ヨ鏈夋晥 + * @param start + * @param count + * @param cid + * @return + */ + List<BrandClassShop> listEffective(@Param("cid") Long cid); + + long countEffective(@Param("cid") Long cid); + + + List<BrandClassShop> getExistByShopIds(List<Long> list); + + /** + * 鏍规嵁搴楅摵id + * @param cid + * @param shopId + * @return + */ + BrandClassShop getByShopId(@Param("shopId") Long shopId); + + /** + * 鏍规嵁搴楅摵id銆佸垎绫籭d鏌ヨ + * @param cid + * @param shopId + * @return + */ + BrandClassShop getByShopIdAndCid(@Param("cid") Long cid, @Param("shopId") Long shopId); + + /** + * 鏍规嵁鍒嗙被鏌ヨ鎺掑簭 + * @param cid + * @return + */ + int getMaxOrder(@Param("cid") Long cid); + + /** + * 鎺掑簭浜ゆ崲 + * @param order + * @param type + * @return + */ + BrandClassShop getByAdjoinOrder(@Param("cid") Long cid, @Param("order") Integer order, @Param("type") Integer type); + + /** + * 鏌ヨ鍒楄〃 + * @param start + * @param count + * @param key + * @param state + * @return + */ + public List<BrandClassShop> listQuery(@Param("start") long start,@Param("count") int count, + @Param("key")String key, @Param("cid") Long cid,@Param("state") Integer state); + + public long countQuery(@Param("key")String key, @Param("cid") Long cid,@Param("state") Integer state); + + } \ No newline at end of file -- Gitblit v1.8.0