|  |  |  | 
|---|
|  |  |  | <id column="id" property="id" /> | 
|---|
|  |  |  | <result column="name" property="name" /> | 
|---|
|  |  |  | <result column="mac" property="mac" /> | 
|---|
|  |  |  | <result column="guid" property="guid" /> | 
|---|
|  |  |  | <result column="operate_ids" property="operateIds" /> | 
|---|
|  |  |  | <result column="organization_id" property="organizationId" /> | 
|---|
|  |  |  | <result column="device_version_id" property="deviceVersionId" /> | 
|---|
|  |  |  | 
|---|
|  |  |  | <select id="selectOrgByMac" resultType="com.moral.api.entity.Organization"> | 
|---|
|  |  |  | SELECT area_code, city_code | 
|---|
|  |  |  | FROM organization | 
|---|
|  |  |  | WHERE organization_id = | 
|---|
|  |  |  | (SELECT organization_id FROM special_device WHERE mac = #{mac}) | 
|---|
|  |  |  | WHERE id = (SELECT organization_id FROM special_device WHERE mac = #{mac}) | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </mapper> | 
|---|