diff --git a/src/main/resources/mapper/SysCaseQuestionMapper.xml b/src/main/resources/mapper/SysCaseQuestionMapper.xml index 6a2b619..6dd4040 100644 --- a/src/main/resources/mapper/SysCaseQuestionMapper.xml +++ b/src/main/resources/mapper/SysCaseQuestionMapper.xml @@ -441,7 +441,7 @@ s.one_id = #{oneId} </if> <if test="title != null and title != ''"> - and s.title = #{title} + and s.title LIKE CONCAT('%', #{title}, '%') </if> <if test="source != null and source != ''"> and s.source in('管理员',source) @@ -456,7 +456,7 @@ <select id="selectCaseByConditionsByBind" parameterType="java.lang.String" resultMap="BaseResultMap"> select st.*,s.title,s.content,s.resource_data,s.source,s.type,s.unmount_status,s.create_time from sys_case_questions s - join sys_topic_and_course st + left join sys_topic_and_course st on s.case_id = st.topic_id <where> <if test="title != null and title != ''">