From c389b1ca090df256bad7fd0d183914146c1f93b8 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 12 四月 2019 12:15:06 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 fanli/src/main/java/com/yeshi/fanli/mapping/msg/SystemZnxMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/msg/SystemZnxMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/msg/SystemZnxMapper.xml
index a50b50b..9d840c0 100644
--- a/fanli/src/main/java/com/yeshi/fanli/mapping/msg/SystemZnxMapper.xml
+++ b/fanli/src/main/java/com/yeshi/fanli/mapping/msg/SystemZnxMapper.xml
@@ -54,4 +54,17 @@
 		</set>
 		where id = #{id,jdbcType=BIGINT}
 	</update>
+	
+	<select id="listbyCreateTime" resultMap="BaseResultMap">
+		SELECT * FROM yeshi_ec_system_msg  t 
+		WHERE t.`createTime` <![CDATA[ >= ]]> #{createTime}
+	</select>
+	
+	<select id="listbyUidAndCreateTime" resultMap="BaseResultMap">
+		SELECT sm.* FROM `yeshi_ec_system_msg` sm 
+		LEFT JOIN  (SELECT * FROM `yeshi_ec_account_message` a 
+			WHERE a.`uid`= #{uid}  AND a.`system_msg_id` IS NOT NULL)s ON s.`system_msg_id`=sm.`id` 
+		WHERE s.`system_msg_id` IS NULL AND sm.createTime<![CDATA[ >= ]]> #{createTime}
+	</select>
+	
 </mapper>

--
Gitblit v1.8.0