|
|
|
@ -46,12 +46,16 @@
|
|
|
|
|
cd.code as code,
|
|
|
|
|
atql.dict_id as dictId,
|
|
|
|
|
atql.question as question,
|
|
|
|
|
cd.name_zh_path as nameZhPath
|
|
|
|
|
cd.name_zh_path as nameZhPath,
|
|
|
|
|
cd.name_zh as nameZh
|
|
|
|
|
from vp_ask_template_question_library atql
|
|
|
|
|
left join vp_common_dic cd on atql.dict_id = cd.id
|
|
|
|
|
<where>
|
|
|
|
|
<if test="askQuestionLibrary.code != null and askQuestionLibrary.code != '' ">
|
|
|
|
|
AND cd.code = #{askQuestionLibrary.code}
|
|
|
|
|
cd.code = #{askQuestionLibrary.code}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="askQuestionLibrary.question != null and askQuestionLibrary.question != '' ">
|
|
|
|
|
JSON_EXTRACT(question, '$[*]') like CONCAT('%', #{askQuestionLibrary.question}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|