| | |
| | | </select> |
| | | |
| | | <select id="selectCountForRole" resultType="java.lang.Integer" parameterType="java.lang.String"> |
| | | select count(*) from lf.sys_user a |
| | | select count(a.*) from lf.sys_user a |
| | | <where> |
| | | not exists (select id from lf.sys_role_user b where b.userid = a.id |
| | | not exists (select b.id from lf.sys_role_user b where b.userid = a.id |
| | | <if test="roleid != null"> |
| | | and b.roleid = #{roleid} |
| | | </if> |
| | |
| | | <select id="selectByPageForRole" resultMap="resultMap" resultType="com.lf.server.entity.sys.UserEntity"> |
| | | select a.*,fn_rec_query(a.depid, 'dep') depName from lf.sys_user a |
| | | <where> |
| | | not exists (select id from lf.sys_role_user b where b.userid = a.id |
| | | not exists (select b.id from lf.sys_role_user b where b.userid = a.id |
| | | <if test="roleid != null"> |
| | | and b.roleid = #{roleid} |
| | | </if> |