lyh
2 天以前 3ce27b7faf8850d101a1511a685250fe562dca18
src/main/resources/com.lxzn.nc.dao/DeviceGroupMapper.xml
@@ -39,17 +39,17 @@
        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>