|
@@ -278,8 +278,8 @@
|
|
|
</select>
|
|
|
<select id="findOrgType" resultType="com.huaxu.entity.Org">
|
|
|
select a.ORG_TYPE , b.ORG_TYPE parentType,c.ORG_TYPE childType
|
|
|
- from uims_org a left join uims_org b on a.PARENT_ORG_ID=b.ID
|
|
|
- left join uims_org c on a.id=c.PARENT_ORG_ID
|
|
|
- where a.id=#{id} limit 1
|
|
|
+ from uims_org a left join uims_org b ON (a.PARENT_ORG_ID=b.ID and b.status=1)
|
|
|
+ LEFT JOIN uims_org c ON (a.id=c.PARENT_ORG_ID and c.status=1)
|
|
|
+ where a.id=#{id} limit 1
|
|
|
</select>
|
|
|
</mapper>
|