龚焕茏
2024-05-27 e9cb6857fb6360172ce63b1aca141d2f7ed80ec9
src/main/resources/mapper/QuestionMapper.xml
@@ -186,6 +186,9 @@
        LEFT JOIN t_text_content t on q.info_text_content_id = t.id
        <where>
            and q.deleted=0 and qs.deleted = 0
            <if test="titleContent != null and titleContent != ''">
                and JSON_VALUE(t.content, '$.titleContent') like concat('%', #{titleContent}, '%')
            </if>
            <if test="id != null ">
                and q.id= #{id}
            </if>