|
|
@@ -344,9 +344,10 @@
|
|
|
with tmp as (
|
|
|
SELECT T.USERID, LISTAGG(T.ACCOUNTID, ',') WITHIN GROUP (ORDER BY T.ACCOUNTID) AS ACCOUNTID FROM TAACCOUNT T GROUP BY T.USERID
|
|
|
)
|
|
|
- select o.*, r.modifytime rolemodifytime, r.creatorid operatorid, tmp.accountid
|
|
|
+ select o.*, r.modifytime rolemodifytime, tmp.accountid,sm.username username
|
|
|
from arearole r,useraccount o
|
|
|
left join tmp on o.userid = tmp.userid
|
|
|
+ left join systemmanager sm on sm.autoid = o.creatorid
|
|
|
<where>
|
|
|
r.userid = o.userid and o.usertype = 2
|
|
|
<if test="vo.roleid != null">
|
|
|
@@ -368,9 +369,10 @@
|
|
|
with tmp as (
|
|
|
SELECT T.USERID, LISTAGG(T.ACCOUNTID, ',') WITHIN GROUP (ORDER BY T.ACCOUNTID) AS ACCOUNTID FROM TAACCOUNT T GROUP BY T.USERID
|
|
|
)
|
|
|
- select o.*, r.modifytime rolemodifytime, tmp.accountid
|
|
|
+ select o.*, r.modifytime rolemodifytime, tmp.accountid,sm.username username
|
|
|
from arearole r, useraccount o
|
|
|
left join tmp on o.userid = tmp.userid
|
|
|
+ left join systemmanager sm on sm.autoid = o.creatorid
|
|
|
<where>
|
|
|
r.userid = o.userid and r.roletype = 4 and o.usertype = 2
|
|
|
<if test="vo.accountname != null and vo.accountname != '' ">
|