yonge 4 سال پیش
والد
کامیت
cae4098f2c
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      cms/src/main/resources/config/mybatis/SysNewsInformationMapper.xml

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

@@ -48,6 +48,14 @@
 			<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 or memo_ = '')
+				</otherwise>
+			</choose>
 		</where>
 	</sql>