소스 검색

后台消息推送分页修复

Michael 8 년 전
부모
커밋
26c2cdf2db
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      src/main/java/com/goafanti/common/mapper/MessageFromSystemMapper.xml

+ 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}