fetch:机构人员bug
This commit is contained in:
+2
-1
@@ -6,6 +6,7 @@
|
||||
<result column="parent_id" property="parentId"/>
|
||||
<result column="level" property="level"/>
|
||||
<result column="name" property="name"/>
|
||||
<result column="has_child" property="hasChild"/>
|
||||
<collection property="users" ofType="com.adc.da.slrs.sarInstitution.entity.TsUserVO">
|
||||
<result column="usid" property="id"/>
|
||||
<result column="account" property="account"/>
|
||||
@@ -17,7 +18,7 @@
|
||||
select i.*,u.usid,u.account,u.uname,u.institution_id from ts_institution i
|
||||
left join ts_user u
|
||||
on i.id=u.institution_id
|
||||
where i.parent_id is null or i.parent_id=''
|
||||
where i.parent_id not in (select id from ts_institution)
|
||||
</select>
|
||||
|
||||
<select id="selectAndUserByParent" resultMap="InstitutionAndUser">
|
||||
|
||||
Reference in New Issue
Block a user