|
@@ -23,19 +23,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectXmArticleList" parameterType="XmArticle" resultMap="XmArticleResult">
|
|
|
<include refid="selectXmArticleVo"/>
|
|
|
<where>
|
|
|
- <if test="title != null and title != ''"> and title = #{title}</if>
|
|
|
+ <if test="title != null and title != ''"> and title like concat('%', #{title}, '%')</if>
|
|
|
<if test="brief != null and brief != ''"> and brief = #{brief}</if>
|
|
|
<if test="source != null and source != ''"> and source = #{source}</if>
|
|
|
<if test="detail != null and detail != ''"> and detail = #{detail}</if>
|
|
|
- <if test="articleType != null and articleType != ''"> and article_type = #{articleType}</if>
|
|
|
- <if test="articleTypes != null and articleTypes.size()>0">
|
|
|
+ <if test="articleType != null and articleType != ''"> and article_type = #{articleType}</if>
|
|
|
+<!-- <if test="articleTypes != null and articleTypes.size()>0">
|
|
|
and article_type in
|
|
|
<foreach collection="articleTypes" item="articleType" index="index" open="(" close=")" separator=",">
|
|
|
#{articleType}
|
|
|
</foreach>
|
|
|
- </if>
|
|
|
- ORDER BY create_time DESC
|
|
|
+ </if>-->
|
|
|
</where>
|
|
|
+ ORDER BY create_time DESC
|
|
|
</select>
|
|
|
|
|
|
<select id="selectXmArticleById" parameterType="Long" resultMap="XmArticleResult">
|