yonge 5 years ago
parent
commit
c1a1d22963

+ 3 - 8
cms/src/main/resources/config/mybatis/SysNewsInformationMapper.xml

@@ -37,14 +37,9 @@
 			<if test="search != null">
 				and title_ like '%' #{search} '%'
 			</if>
-			<choose>
-		        <when test="memo != null and memo != ''">
-		            and memo_ = #{memo}
-		        </when>
-		        <otherwise>
-		            and memo_ is null
-		        </otherwise>
-	        </choose>
+			<if test="memo != null">
+				and memo_ = #{memo}
+			</if>
 		</where>
 	</sql>