|
@ -622,7 +622,12 @@ |
|
|
ID AS agencyId, |
|
|
ID AS agencyId, |
|
|
ORGANIZATION_NAME AS agencyName, |
|
|
ORGANIZATION_NAME AS agencyName, |
|
|
PID, |
|
|
PID, |
|
|
LEVEL |
|
|
LEVEL, |
|
|
|
|
|
( |
|
|
|
|
|
case when pid is null or pid='0' or pid='' then id |
|
|
|
|
|
else concat(pids,':',id) |
|
|
|
|
|
end |
|
|
|
|
|
)as orgIdPath |
|
|
from customer_agency |
|
|
from customer_agency |
|
|
where |
|
|
where |
|
|
DEL_FLAG = 0 |
|
|
DEL_FLAG = 0 |
|
@ -636,7 +641,12 @@ |
|
|
ID AS agencyId, |
|
|
ID AS agencyId, |
|
|
ORGANIZATION_NAME AS agencyName, |
|
|
ORGANIZATION_NAME AS agencyName, |
|
|
PID, |
|
|
PID, |
|
|
LEVEL |
|
|
LEVEL, |
|
|
|
|
|
( |
|
|
|
|
|
case when pid is null or pid='0' or pid='' then id |
|
|
|
|
|
else concat(pids,':',id) |
|
|
|
|
|
end |
|
|
|
|
|
)as orgIdPath |
|
|
from |
|
|
from |
|
|
customer_agency |
|
|
customer_agency |
|
|
where |
|
|
where |
|
|