diff --git a/epdc-cloud-admin/src/main/resources/mapper/SysDeptDao.xml b/epdc-cloud-admin/src/main/resources/mapper/SysDeptDao.xml index 3c58020..9349539 100644 --- a/epdc-cloud-admin/src/main/resources/mapper/SysDeptDao.xml +++ b/epdc-cloud-admin/src/main/resources/mapper/SysDeptDao.xml @@ -365,19 +365,19 @@ SELECT grid.id AS gridId, grid.`name` AS gridName, - grid.dept_id as gridDeptId, + grid.id as gridDeptId, comm.id AS communityId, comm.`name` AS communityName, - comm.dept_id as communityDeptId, + comm.id as communityDeptId, street.id AS streetId, street.`name` AS streetName, - street.dept_id as streetDeptId + street.id as streetDeptId FROM sys_dept grid LEFT JOIN sys_dept comm ON comm.id = grid.pid LEFT JOIN sys_dept street ON street.id = comm.pid WHERE - grid.tags LIKE '%grid_party%' + grid.type_key LIKE '%grid_party%' AND grid.name = #{gridName}