Browse Source

当前组织级下级组织网格部门

master
zhaoqifeng 4 years ago
parent
commit
32ad450ca5
  1. 25
      epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/dao/govorg/CustomerAgencyDao.java
  2. 27
      epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/govorg/CustomerAgencyDao.xml

25
epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/dao/govorg/CustomerAgencyDao.java

@ -71,10 +71,31 @@ public interface CustomerAgencyDao extends BaseDao<CustomerAgencyEntity> {
* @return
*/
StaffOrgRelationResultDTO getStaffFromOrgType(@Param("staffId") String staffId);
/**
* @Description 工作端组织级下级组织树
* @Param agencyId
* @Return {@link OrgTreeResultDTO}
* @Author zhaoqifeng
* @Date 2021/9/23 10:16
*/
OrgTreeResultDTO getOrgTree(@Param("agencyId") String agencyId);
List<OrgTreeResultDTO> getSubOrgList(@Param("pid") String pid);
/**
* @Description 居民端组织级下级组织树
* @Param agencyId
* @Return {@link OrgTreeResultDTO}
* @Author zhaoqifeng
* @Date 2021/9/23 10:16
*/
OrgTreeResultDTO getResiOrgTree(@Param("agencyId") String agencyId);
List<OrgTreeResultDTO> getResiSubOrgList(@Param("pid") String pid);
/**
* @Description 工作人员所在的组织部门网格
* @Param staffId
* @Return {@link List< String>}
* @Author zhaoqifeng
* @Date 2021/9/23 10:16
*/
List<String> getOrgList(@Param("staffId") String staffId);
}

27
epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/govorg/CustomerAgencyDao.xml

@ -201,7 +201,7 @@
select
ID AS orgId,
ORGANIZATION_NAME AS orgName,
'agency' AS orgName,
'agency' AS orgType,
CONCAT(PIDS,ID) AS orgPids
from
@ -253,7 +253,7 @@
select
ID AS orgId,
ORGANIZATION_NAME AS orgName,
'agency' AS orgName,
'agency' AS orgType,
CONCAT(PIDS,ID) AS orgPids
from
@ -262,5 +262,28 @@
DEL_FLAG = 0
AND ID = #{agencyId}
</select>
<select id="getOrgList" resultType="java.lang.String">
SELECT
AGENCY_ID AS orgId
FROM
customer_staff_agency
WHERE
DEL_FLAG = '0'
AND USER_ID = #{staffId} UNION
SELECT
GRID_ID AS orgId
FROM
customer_staff_grid
WHERE
DEL_FLAG = '0'
AND USER_ID = #{staffId} UNION
SELECT
DEPARTMENT_ID AS orgId
FROM
customer_staff_department
WHERE
DEL_FLAG = '0'
AND USER_ID = #{staffId}
</select>
</mapper>

Loading…
Cancel
Save