| | |
| | | and bu.tenant_id = #{user.tenantId} |
| | | </if> |
| | | <if test="user.account!=null and user.account != ''"> |
| | | and bu.account = #{user.account} |
| | | and bu.account like concat('%',#{user.account},'%') |
| | | </if> |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and bu.real_name like concat(concat('%',#{user.realName}),'%') |
| | |
| | | SELECT * FROM BLADE_USER |
| | | WHERE IS_DELETED = 0 AND PHONE LIKE CONCAT('%',#{phoneIds},'%') |
| | | </select> |
| | | <select id="getSysUserNum" resultType="java.lang.Integer"> |
| | | select count(*) from ( |
| | | select bu.id from blade_user bu |
| | | where bu.is_deleted = 0 |
| | | <if test="deptIdList!=null and deptIdList.size()>0"> |
| | | and id in ( |
| | | SELECT |
| | | user_id |
| | | FROM |
| | | blade_user_dept |
| | | WHERE |
| | | dept_id IN |
| | | <foreach collection="deptIdList" index="index" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | ) |
| | | </if> |
| | | ) |
| | | |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </mapper> |