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>