manage: 问题库添加过滤参数

dev_2.1.0
xueqingkun 1 year ago
parent 5d2c143887
commit c6ade81302

@ -23,4 +23,7 @@ public class AskQuestionLibraryReqVo {
@ApiModelProperty("问题") @ApiModelProperty("问题")
private String description; private String description;
@ApiModelProperty("问题类目字典id")
private String dictId;
} }

@ -62,6 +62,9 @@
<if test="askQuestionLibrary.description != null and askQuestionLibrary.description != '' "> <if test="askQuestionLibrary.description != null and askQuestionLibrary.description != '' ">
and atql.question like CONCAT('%', #{askQuestionLibrary.description}, '%') and atql.question like CONCAT('%', #{askQuestionLibrary.description}, '%')
</if> </if>
<if test="askQuestionLibrary.dictId != null and askQuestionLibrary.dictId != '' ">
and atql.dict_id = #{askQuestionLibrary.dictId}
</if>
</where> </where>
order by atql.create_time desc order by atql.create_time desc

Loading…
Cancel
Save