| | |
| | | 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、分类id查询 |
| | | * @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、分类id查询
|
| | | * @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);
|
| | | |
| | | |
| | | } |