|
@ -384,11 +384,11 @@ |
|
|
|
|
|
|
|
|
<select id="getDeptInfoByName" resultType="com.elink.esua.epdc.dto.AllDeptDTO"> |
|
|
<select id="getDeptInfoByName" resultType="com.elink.esua.epdc.dto.AllDeptDTO"> |
|
|
SELECT |
|
|
SELECT |
|
|
grid.dept_id AS gridId, |
|
|
grid.id AS gridId, |
|
|
grid.`name` AS gridName, |
|
|
grid.`name` AS gridName, |
|
|
comm.dept_id AS communityId, |
|
|
comm.id AS communityId, |
|
|
comm.`name` AS communityName, |
|
|
comm.`name` AS communityName, |
|
|
street.dept_id AS streetId, |
|
|
street.id AS streetId, |
|
|
street.`name` AS streetName, |
|
|
street.`name` AS streetName, |
|
|
street.id AS deptId, |
|
|
street.id AS deptId, |
|
|
street.`name` AS deptName |
|
|
street.`name` AS deptName |
|
@ -397,7 +397,7 @@ |
|
|
LEFT JOIN sys_dept comm ON comm.id = grid.pid |
|
|
LEFT JOIN sys_dept comm ON comm.id = grid.pid |
|
|
LEFT JOIN sys_dept street ON street.id = comm.pid |
|
|
LEFT JOIN sys_dept street ON street.id = comm.pid |
|
|
WHERE |
|
|
WHERE |
|
|
grid.tags LIKE '%grid_party%' |
|
|
grid.type_key LIKE '%grid_party%' |
|
|
AND grid.name = #{gridName} |
|
|
AND grid.name = #{gridName} |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|