|
@@ -1631,13 +1631,16 @@
|
|
|
FROM
|
|
|
`jeecg-boot`.sys_user u,
|
|
|
`jeecg-boot`.sys_role r,
|
|
|
- `jeecg-boot`.sys_user_role sur
|
|
|
+ `jeecg-boot`.sys_user_role sur,
|
|
|
+ `jeecg-boot`.user_company c
|
|
|
WHERE
|
|
|
r.role_code = #{roleCode}
|
|
|
AND u.id = sur.user_id
|
|
|
+ AND u.id = c.user_id
|
|
|
AND r.id = sur.role_id
|
|
|
AND u.STATUS = 1
|
|
|
AND u.del_flag = 0
|
|
|
+ AND c.company_id='d57fecdcf7a94d009736d9c850731582'
|
|
|
ORDER BY u.create_time
|
|
|
</select>
|
|
|
|