lyh
2025-01-13 137d008bd9b7d932160436a3a560b24512f6d1db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.jeecg.modules.dnc.mapper.PartsPermissionMapper">
    <select id="getUserPermsByProductId"  parameterType="String" resultType="org.jeecg.modules.dnc.ucenter.UserDepartExt">
        select u.id
        , u.username
        , u.realname
        , u.avatar
        , u.phone
        , u.email
        from sys_user u
        inner join
        (select user_id from nc_parts_permission where parts_id=#{partsId}) p
        on u.id=p.user_id
    </select>
 
    <select id="getUserNonPermsByProductId" resultType="org.jeecg.modules.system.entity.SysUser" parameterType="String">
        select u.id
        , u.username
        , u.realname
        , u.avatar
        , u.phone
        , u.email
        from sys_user u
        where u.id not in (select user_id from nc_parts_permission where parts_id=#{partsId})
    </select>
</mapper>