Explorar o código

用户列表机构查询

lin %!s(int64=4) %!d(string=hai) anos
pai
achega
05e75a7cdf
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/main/resources/mapper/UserMapper.xml

+ 1 - 0
src/main/resources/mapper/UserMapper.xml

@@ -211,6 +211,7 @@
         <if test="name != null and name != ''"> AND su.`name` LIKE concat('%',#{name},'%')</if>
         <if test="mobilePhone != null and mobilePhone != ''"> AND su.mobile_phone LIKE concat('%',#{mobilePhone},'%')</if>
         <if test="roleId != null"> and sr.id = #{roleId} </if>
+        <if test="organId != null"> and so.id = #{organId} </if>
         order by su.type asc,su.create_date desc
     </select>