| | |
| | | where parent_id=#{parentId} and delete_flag=0 |
| | | </select> |
| | | |
| | | <resultMap id="deviceGroupExtPermsMap" type="DeviceGroupExt"> |
| | | <resultMap id="deviceGroupExtPermsMap" type="com.lxzn.framework.domain.nc.ext.DeviceGroupExt"> |
| | | <id column="group_id" property="groupId" /> |
| | | <result column="user_id" property="userId" /> |
| | | <collection column="{parentId=group_id, userId=user_id}" property="children" |
| | | javaType="ArrayList" ofType="DeviceGroupExt" select="getByParentIdAndUserPerms"> |
| | | javaType="ArrayList" ofType="com.lxzn.framework.domain.nc.ext.DeviceGroupExt" select="getByParentIdAndUserPerms"> |
| | | <id column="group_id" property="groupId" /> |
| | | <result column="user_id" property="userId" /> |
| | | </collection> |
| | | </resultMap> |
| | | |
| | | <resultMap id="deviceGroupExtPermsMapAs" type="DeviceGroupExt"> |
| | | <resultMap id="deviceGroupExtPermsMapAs" type="com.lxzn.framework.domain.nc.ext.DeviceGroupExt"> |
| | | <id column="group_id" property="groupId" /> |
| | | <association property="parent" column="{id=parent_id}" select="findById"> |
| | | </association> |