jinpengyong
2021-08-17 6f4e852b84c577454a4876f83c7085bd360fe4fb
screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml
@@ -63,4 +63,12 @@
        where
            d.`is_delete` = 0;
    </select>
    <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})
    </select>
</mapper>