Commit 87b720f3 by zhiwj

查询添加参数

parent d48e7d5c
......@@ -15,6 +15,7 @@ public class IndexQO extends PageQO implements Serializable {
private String moduleId;
private Integer isAppIndex;
private String search;
private Integer indexGroupId;
private List<Integer> indexIdList;
public Integer getClassifyType() {
......@@ -56,4 +57,12 @@ public class IndexQO extends PageQO implements Serializable {
public List<Integer> getIndexIdList() {
return indexIdList;
}
public Integer getIndexGroupId() {
return indexGroupId;
}
public void setIndexGroupId(Integer indexGroupId) {
this.indexGroupId = indexGroupId;
}
}
......@@ -375,6 +375,9 @@
<if test="search != null and search != '' ">
and name like concat('%', #{search}, '%')
</if>
<if test="indexGroupId != null ">
and (index_group_id = #{indexGroupId} or index_group_id is null)
</if>
<if test="null != indexIdList and indexIdList.size > 0">
and index_id in
<foreach collection="indexIdList" index="index" item="item" open="(" separator="," close=")">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment