改为模糊查询

master
xiaoCJ 8 months ago
parent 05b7fe5e3d
commit 49fef7a7aa

@ -460,7 +460,7 @@
on s.case_id = st.topic_id
<where>
<if test="title != null and title != ''">
and s.title = #{title}
and s.title LIKE CONCAT('%', #{title}, '%')
</if>
and s.unmount_status is false
</where>

@ -417,7 +417,7 @@
and sb.type = #{type}
</if>
<if test="content != null and content != ''">
and sb.content = #{content}
and sb.content LIKE CONCAT('%', #{content}, '%')
</if>
</where>
order by sb.create_time
@ -444,7 +444,7 @@
and sb.type = #{type}
</if>
<if test="content != null and content != ''">
and sb.content = #{content}
and sb.content LIKE CONCAT('%', #{content}, '%')
</if>
<if test="schoolId != null and schoolId != ''">
and sb.source in (#{schoolId},'管理员')

@ -392,7 +392,7 @@
and sc.three_id = #{threeId}
</if>
<if test="resourceName != null and resourceName != ''">
and sr.resource_name = #{resourceName}
and sr.resource_name LIKE CONCAT('%', #{resourceName}, '%')
</if>
</where>
order by sr.create_time

Loading…
Cancel
Save