Browse Source

gov/org/customeragency/agencylist返回orgIdPath

master
yinzuomei 3 years ago
parent
commit
9896bc669e
  1. 4
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/AgencyTreeResultDTO.java
  2. 14
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerAgencyDao.xml

4
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/AgencyTreeResultDTO.java

@ -35,6 +35,10 @@ public class AgencyTreeResultDTO implements Serializable {
* orgId-orgLevel * orgId-orgLevel
*/ */
private String orgLevel; private String orgLevel;
/**
* agencyId的全路径包含自身
*/
private String orgIdPath;
/** /**
* 下级机关组织 * 下级机关组织
*/ */

14
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerAgencyDao.xml

@ -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

Loading…
Cancel
Save