id
,dict_id,code,description,
question,default_answer,default_answer_code,default_answer_resources_id,create_user_id,
create_time,update_user_id,update_time
select
atql.id as id,
atql.default_answer,
atql.id as libraryQuestionId,
cd.code as code,
atql.dict_id as dictId,
atql.question as question,
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
cd.code = #{askQuestionLibrary.code}
JSON_EXTRACT(question, '$[*]') like CONCAT('%', #{askQuestionLibrary.question}, '%')
order by atql.create_time desc