|
@@ -13,7 +13,7 @@ select t1.userid,
|
|
|
from sys_users t1
|
|
|
inner join sys_usersite t2 on t1.userid = t2.userid and t2.siteid = $siteid$
|
|
|
inner join sys_enterprise_hr t4 on t1.userid = t4.userid
|
|
|
-where exists(select 1 from sys_hr where userid =t1.userid and isworker=1) and $where$
|
|
|
+where exists(select userid,rolename from sys_userrole a1 inner join sys_role a2 on a1.roleid=a2.roleid and userid=t1.userid and rolename like '%维修%') and $where$
|
|
|
and t1.status!='DELETED'
|
|
|
group by t1.userid, t1.name, t1.createby, t1.createdate, t1.changeby, t1.remarks,
|
|
|
t1.changedate, t1.phonenumber, t1.status, t1.accountno, t2.siteid, t2.usertype
|