提交 6b90f090 作者: ZhangJingKun

修改人物列表查询默认排序字段

        姓名支持模糊查询
上级 6a44d746
......@@ -21,7 +21,7 @@ public class CharacterListVo {
private Integer pageSize = 10;
//排序字段,多个排序字段用逗号分隔
private String column = "create_time";
private String column = "id";
//降序DESC 升序 ASC 默认为DESC
private String order = "DESC";
......
......@@ -25,7 +25,7 @@
where 1 = 1
and (b.status = 1 or b.status IS NULL)
<if test="name != null and name != ''">
AND a.name = #{name}
AND a.name like '%${name}%'
</if>
<if test="company != null and company != ''">
AND b.company like '%${company}%'
......@@ -62,7 +62,7 @@
where 1 = 1
and (b.status = 1 or b.status IS NULL)
<if test="name != null and name != ''">
AND a.name = #{name}
AND a.name like '%${name}%'
</if>
<if test="company != null and company != ''">
AND b.company like '%${company}%'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论