Commit c7897211 authored by ZWT's avatar ZWT

得到的

parent f1b24b0e
......@@ -271,7 +271,25 @@
</select>
<select id="selectAllListByOuId" parameterType="pps.core.system.entity.SysOrganizationView"
resultMap="BaseResultMap">
resultMap="BaseResultMap" databaseId="Oracle">
SELECT S.ID,
R.PARENT_OU_ID,
S.OU_NAME,
S.SHORT_NAME,
S.LONGITUDE,
S.LATITUDE
FROM SYS_ORGANIZATION_REL R
LEFT JOIN SYS_ORGANIZATION S ON R.OU_ID = S.ID
WHERE S.IS_DELETED = #{isDeleted}
AND (R.OU_ID = #{id} OR R.OU_ID_PATH LIKE '%' || #{id} || '%')
<if test="ouLevel != null and ouLevel !=''">
AND S.OU_LEVEL = #{ouLevel}
</if>
ORDER BY S.CREATE_TIME
</select>
<select id="selectAllListByOuId" parameterType="pps.core.system.entity.SysOrganizationView"
resultMap="BaseResultMap" databaseId="MySQL">
SELECT S.ID,
R.PARENT_OU_ID,
S.OU_NAME,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment