Browse Source

'用户搜索'

master
dongyuangong 4 years ago
parent
commit
e51e631419
2 changed files with 16 additions and 2 deletions
  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 View File



<select id="getAdminList" resultType="com.taauav.front.entity.UserAdmin"> <select id="getAdminList" resultType="com.taauav.front.entity.UserAdmin">
select * from user_admin where mark=1 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>
<if test="param.driverArea != null"> <if test="param.driverArea != null">
and driver_area = #{param.driverArea} and driver_area = #{param.driverArea}
<if test="param.authGroup != null and param.authGroup != ''"> <if test="param.authGroup != null and param.authGroup != ''">
and find_in_set(#{param.authGroup},auth_group) and find_in_set(#{param.authGroup},auth_group)
</if> </if>

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



+ 10
- 0
src/main/java/com/taauav/front/query/UserAdminQuery.java View File

*/ */
private BigInteger driverArea; private BigInteger driverArea;


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

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

} }

Loading…
Cancel
Save