rs.id, rs.org_all_path orgAllPath, rs.org_id orgId, rs.region_org_id regionOrgId, rs.basic_org_id basicOrgId, rs.department_id departmentId, rs.name, rs.code, rs.type_id typeId, rs.relation_type relationType, rs.relation_equipment_id relationEquipmentId, rs.relation_space_id relationSpaceId, rs.inherent_level_id inherentLevelId, rs.real_level_id realLevelId, rs.control_level_id controlLevelId,rs.relation_space_parent_id relationSpaceParentId, rs.relation_space_level_ids relationSpaceLevelIds, rs.relation_equipment_level_ids relationEquipmentLevelIds, rs.status, rs.remarks, rs.create_by createBy, rs.create_date createDate, rs.update_by as updateBy, rs.update_date updateDate and rs.id=#{query.id} and rs.department_id=#{query.departmentId} and rs.name like concat('%',#{query.name},'%') and rs.code=#{query.code} and rs.type_id=#{query.typeId} and rs.inherent_level_id=#{query.inherentLevelId} and rs.real_level_id=#{query.realLevelId} and rs.control_level_id=#{query.controlLevelId} and rs.relation_equipment_id=#{query.relationEquipmentId} and rs.relation_space_parent_id=#{query.relationSpaceParentId} and rs.relation_space_id=#{query.relationSpaceId}