From e65037e672ecab852e2a6c5b242cdadfd1a58b33 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期一, 25 十一月 2019 09:30:24 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/div' into div

---
 fanli/src/main/java/com/yeshi/fanli/mapping/redpack/RedPackConfigMapper.xml |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/redpack/RedPackConfigMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/redpack/RedPackConfigMapper.xml
index 8283957..b86a2fd 100644
--- a/fanli/src/main/java/com/yeshi/fanli/mapping/redpack/RedPackConfigMapper.xml
+++ b/fanli/src/main/java/com/yeshi/fanli/mapping/redpack/RedPackConfigMapper.xml
@@ -58,4 +58,15 @@
   	WHERE t.`rpc_key` = #{key} and #{startTime} >= rpc_start_time 
   	ORDER BY rpc_start_time DESC LIMIT 1
   </select>
+  
+  <select id="query" resultMap="BaseResultMap">
+	SELECT * FROM `yeshi_ec_red_pack_config` t
+	WHERE t.`rpc_name` LIKE '${key}%' OR t.`rpc_value` LIKE '${key}%'
+	LIMIT #{start},#{count}
+  </select>
+  
+  <select id="count" resultType="Long">
+  	 SELECT IFNULL(COUNT(t.rpc_id),0) FROM yeshi_ec_red_pack_config t
+     WHERE t.`rpc_name` LIKE '${key}%' OR t.`rpc_value` LIKE '${key}%'
+  </select>
 </mapper>

--
Gitblit v1.8.0