kaiyu
2021-09-14 0aed1c0e6a91207c15fa34f49a7dfa9b6e2b64c5
screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml
@@ -63,4 +63,11 @@
        where
            d.`is_delete` = 0;
    </select>
    <select id="selectOrgByMac" resultType="com.moral.api.entity.Organization">
        SELECT area_code, city_code
        FROM organization
        WHERE id = (SELECT organization_id FROM special_device WHERE mac = #{mac})
    </select>
</mapper>