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/BrandInfoMapper.java | 166 ++++++++++++++++++++++++++++++------------------------ 1 files changed, 92 insertions(+), 74 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandInfoMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandInfoMapper.java index 261f4b2..e3e75d2 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandInfoMapper.java +++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandInfoMapper.java @@ -1,75 +1,93 @@ -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.BrandClass; -import com.yeshi.fanli.entity.brand.BrandInfo; -import com.yeshi.fanli.vo.brand.BrandInfoVO; - -public interface BrandInfoMapper extends BaseMapper<BrandInfo> { - - /** - * 鏌ヨ鍒楄〃 - * @param start - * @param count - * @param key - * @param state - * @return - */ - List<BrandInfo> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key, - @Param("cid")Long cid, @Param("state") Integer state); - - long countQuery(@Param("key") String key, @Param("cid") Long cid, @Param("state") Integer state); - - - int deleteBatchByPrimaryKey(List<Long> list); - - /** - * 鏌ヨ杩斿洖鍓嶇鍝佺墝 - * @param start - * @param count - * @param cid - * @return - */ - List<BrandInfoVO> listBrandInfoVO(@Param("start")long start, @Param("count")int count,@Param("cid") Long cid); - - - long countBrandInfo(@Param("cid") Long cid); - - - - - /** - * 鏌ヨ鏈夋晥搴楅摵 - * @param start - * @param count - * @return - */ - List<BrandInfo> listValidAll(@Param("start")long start, @Param("count")int count); - - - /** - * 鏌ヨ搴楅摵cid - * @param cid - * @return - */ - List<BrandInfo> listValidByCidToApp(@Param("cid") Long cid); - - /** - * 鏌ヨ搴楅摵cid - * @param cid - * @return - */ - long countValidByCid(@Param("cid") Long cid); - - /** - * 鏌ヨ搴楅摵cid - * @param cid - * @return - */ - long countValidByCidToApp(@Param("cid") Long cid); - +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.BrandInfo; +import com.yeshi.fanli.vo.brand.BrandInfoVO; + +public interface BrandInfoMapper extends BaseMapper<BrandInfo> { + + /** + * 鏌ヨ鍒楄〃 + * @param start + * @param count + * @param key + * @param state + * @return + */ + List<BrandInfo> listQuery(@Param("start") long start, @Param("count") int count, @Param("keys") List<String> keys, + @Param("cid")Long cid, @Param("state") Integer state, @Param("showState")Integer showState); + + long countQuery(@Param("keys") List<String> keys, @Param("cid") Long cid, @Param("state") Integer state, @Param("showState")Integer showState); + + + int deleteBatchByPrimaryKey(List<Long> list); + + + BrandInfo getByAdjoinOrder(@Param("cid") Long cid, @Param("order") double order, @Param("type") Integer type); + + + + /** + * 鏌ヨ杩斿洖鍓嶇鍝佺墝 + * @param start + * @param count + * @param cid + * @return + */ + List<BrandInfoVO> listBrandInfoVO(@Param("start")long start, @Param("count")int count,@Param("cid") Long cid); + + + long countBrandInfo(@Param("cid") Long cid); + + + + + /** + * 鏌ヨ鏈夋晥搴楅摵 + * @param start + * @param count + * @return + */ + List<BrandInfo> listValidAll(@Param("start")long start, @Param("count")int count); + + + /** + * 鏌ヨ搴楅摵cid + * @param cid + * @return + */ + List<BrandInfo> listValidByCidToApp(@Param("cid") Long cid); + + /** + * 鏌ヨ搴楅摵cid + * @param cid + * @return + */ + long countValidByCid(@Param("cid") Long cid); + + /** + * 鏌ヨ搴楅摵cid + * @param cid + * @return + */ + long countValidByCidToApp(@Param("cid") Long cid); + + + BrandInfo selectByUniqueName(@Param("name") String name, @Param("cid") Long cid, @Param("id") Long id); + + + + /** + * 鏌ヨ杩斿洖鍓嶇鍝佺墝 + * @param start + * @param count + * @param cid + * @return + */ + List<BrandInfoVO> listByAlikeName(@Param("key") String key); + } \ No newline at end of file -- Gitblit v1.8.0