瀏覽代碼

'用户搜索'

master
dongyuangong 4 年之前
父節點
當前提交
e51e631419
共有 2 個文件被更改,包括 16 次插入2 次删除
  1. +6
    -2
      src/main/java/com/taauav/front/mapper/UserAdminMapper.xml
  2. +10
    -0
      src/main/java/com/taauav/front/query/UserAdminQuery.java

+ 6
- 2
src/main/java/com/taauav/front/mapper/UserAdminMapper.xml 查看文件

@@ -4,8 +4,8 @@

<select id="getAdminList" resultType="com.taauav.front.entity.UserAdmin">
select * from user_admin where mark=1
<if test="param.realname != null and param.realname != ''">
and (realname like CONCAT('%',#{param.realname},'%') or username like CONCAT('%',#{param.realname},'%'))
<if test="param.keywords != null and param.keywords != ''">
and (realname like CONCAT('%',#{param.keywords},'%') or username like CONCAT('%',#{param.keywords},'%'))
</if>
<if test="param.driverArea != null">
and driver_area = #{param.driverArea}
@@ -13,6 +13,10 @@
<if test="param.authGroup != null and param.authGroup != ''">
and find_in_set(#{param.authGroup},auth_group)
</if>

<if test="param.company != null and param.company != ''">
and company like CONCAT('%',#{param.company},'%')
</if>
order by id desc
</select>


+ 10
- 0
src/main/java/com/taauav/front/query/UserAdminQuery.java 查看文件

@@ -26,4 +26,14 @@ public class UserAdminQuery extends BaseQuery {
*/
private BigInteger driverArea;

/**
* 公司
*/
private String company;

/**
* 用户名或姓名
*/
private String keywords;

}

Loading…
取消
儲存