Browse Source

后台消息推送分页修复

Michael 8 years ago
parent
commit
26c2cdf2db

+ 5 - 5
src/main/java/com/goafanti/common/mapper/MessageFromSystemMapper.xml

@@ -523,7 +523,7 @@
 			message_from_system a
 		where 1= 1
 		<choose>
-			<when test="subject = 2">
+			<when test="subject == 2">
 				and a.subject = 2
 			</when>
 			<otherwise>
@@ -546,12 +546,12 @@
 			message_from_system a
 		where 1= 1
 		<choose>
-			<when test="subject = 01">
-				and a.subject != 2
-			</when>
-			<when test="subject = 2">
+			<when test="subject == 2">
 				and a.subject = 2
 			</when>
+			<otherwise>
+				and a.subject != 2
+			</otherwise>
 		</choose>
 		<if test="isDraft != null">
 			and a.is_draft = #{isDraft,jdbcType=INTEGER}