manage: 修改问题库分页接口(添加根据问题模糊过滤功能)

dev_2.1.0
xueqingkun 1 year ago
parent ec95a8e1b8
commit 21112412b9

@ -12,4 +12,7 @@ public class AskQuestionLibraryReqVo {
@ApiModelProperty("疾病id")
private String diseaseId;
@ApiModelProperty("问题")
private String question;
}

@ -28,4 +28,7 @@ public class AskQuestionLibraryResVo {
@ApiModelProperty("问题类目名")
private String nameZhPath;
@ApiModelProperty("类目名")
private String nameZh;
}

@ -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>

Loading…
Cancel
Save