改为模糊查询

master
xiaoCJ 8 months ago
parent 05b7fe5e3d
commit 49fef7a7aa

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

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

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

Loading…
Cancel
Save