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/homemodule/SpecialMapper.java |  160 +++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 143 insertions(+), 17 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SpecialMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SpecialMapper.java
index cdabb8c..d48b35e 100644
--- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SpecialMapper.java
+++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SpecialMapper.java
@@ -1,18 +1,144 @@
-package com.yeshi.fanli.dao.mybatis.homemodule;
-
-import com.yeshi.fanli.entity.bus.homemodule.Special;
-
-public interface SpecialMapper {
-
-	int deleteByPrimaryKey(Long id);
-
-	int insert(Special record);
-
-	int insertSelective(Special record);
-
-	Special selectByPrimaryKey(Long id);
-
-	int updateByPrimaryKeySelective(Special record);
-
-	int updateByPrimaryKey(Special record);
+package com.yeshi.fanli.dao.mybatis.homemodule;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+
+import com.yeshi.fanli.dao.BaseMapper;
+import com.yeshi.fanli.entity.bus.homemodule.Special;
+
+public interface SpecialMapper extends BaseMapper<Special>{
+
+	
+	int deleteBatchByPrimaryKey(List<Long> list);
+	
+	int deleteBatchByCardID(List<Long> list);
+	/**
+	 * 鎵归噺鏌ヨid
+	 * @param list
+	 * @return
+	 */
+	List<Special> queryByListPrimaryKey(List<Long> list);
+	
+	/**
+	 * 鎵归噺鏌ヨCardID
+	 * @param list
+	 * @return
+	 */
+	List<Special> queryByListCardID(List<Long> list);
+	
+	/**
+	 * 鏌ヨ闇�鏇挎崲椤哄簭鏁版嵁
+	 * @param cardId
+	 * @param type
+	 * @param order
+	 * @return
+	 */
+	Special getOrderByCardID(@Param("cardId") Long cardId, @Param("type") Integer type, 
+			@Param("order") Integer order, @Param("sex")Integer sex);
+	
+	
+	/**
+	 * 鍚庣鏌ヨ鍒楄〃
+	 * @param start
+	 * @param count
+	 * @param card
+	 * @param key
+	 * @param sex
+	 * @return
+	 */
+	List<Special> listQueryByCard(@Param("start") long start, @Param("count") int count,
+			@Param("cardId") Long card, @Param("key") String key, @Param("sex")Integer sex);
+	
+	long countlistQueryByCard(@Param("cardId") Long card, @Param("key") String key, @Param("sex")Integer sex);
+	
+	
+	/**
+	 *   榛樿鏈�澶х殑鎺掑簭鍊�
+	 * @param card
+	 * @return
+	 */
+	int getDefaultMaxOrder(@Param("cardId") Long cardId);
+	
+
+	/**
+	 *   榛樿鏈�澶х殑鎺掑簭鍊�
+	 * @param card
+	 * @return
+	 */
+	int getManMaxOrder(@Param("cardId") Long cardId);
+	
+
+	/**
+	 *   榛樿鏈�澶х殑鎺掑簭鍊�
+	 * @param card
+	 * @return
+	 */
+	int getWomanMaxOrder(@Param("cardId") Long cardId);
+	
+	/**
+	 * 鏍规嵁鏍囪瘑銆佺郴缁熸煡璇㈠惎鐢ㄤ笓棰�
+	 * @param card
+	 * @param systemId
+	 * @return
+	 */
+	List<Special> listBySystemAndCard(@Param("card") String card, @Param("systemId") Long systemId);
+	
+	/**
+	 * 鏌ヨ鏈夋晥涓撻-鐗堟湰鍖哄垎
+	 * @param card
+	 * @param systemId
+	 * @return
+	 */
+	List<Special> listByVersion(@Param("start") long start, @Param("count") int count, 
+			@Param("placeKey") String placeKey, @Param("platform") Integer platform, @Param("versionCode") Integer versionCode);
+	
+	
+	/**
+	 * 鏍规嵁鏍囪瘑銆佺郴缁熸煡璇㈠惎鐢ㄤ笓棰�-鍒嗛〉
+	 * @param card
+	 * @param systemId
+	 * @return
+	 */
+	List<Special> listPageBySystemAndCard(@Param("start") long start, @Param("count") int count, 
+			@Param("card") String card, @Param("systemId") Long systemId);
+	
+	
+	/**
+	 * 鏍规嵁浣嶇疆鏍囪瘑鏌ヨ
+	 * @param card
+	 * @param systemId
+	 * @return
+	 */
+	List<Special> listByPlaceKey(@Param("placeKey") String placeKey, @Param("sex")Integer sex
+			, @Param("platform") Integer platform, @Param("versionCode") Integer versionCode);
+	
+	
+	/**
+	 * 鏍规嵁澶氫釜浣嶇疆鏍囪瘑鏌ヨ
+	 * @param list
+	 * @param sex
+	 * @param platform
+	 * @param versionCode
+	 * @return
+	 */
+	List<Special> listByPlaceKeyList(@Param("start")long start, @Param("count")int count,@Param("list") List<String> list, @Param("sex")Integer sex
+			, @Param("platform") Integer platform, @Param("versionCode") Integer versionCode);
+	
+	long countByPlaceKeyList(@Param("list") List<String> list, @Param("sex")Integer sex
+			, @Param("platform") Integer platform, @Param("versionCode") Integer versionCode);
+	
+	
+	
+	/**
+	 * 鏍规嵁澶氫釜浣嶇疆鏍囪瘑鏌ヨ
+	 * @param list
+	 * @param sex
+	 * @param platform
+	 * @param versionCode
+	 * @return
+	 */
+	List<Special> listByPlaceKeyHasLabel(@Param("start")long start, @Param("count")int count,@Param("list") List<String> list, @Param("sex")Integer sex
+			, @Param("platform") Integer platform, @Param("versionCode") Integer versionCode);
+	
 }
\ No newline at end of file

--
Gitblit v1.8.0