jinpengyong
2021-10-08 4c4b97b0fc6b418254b8b7c29e55c7ee8f39997b
screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml
@@ -67,8 +67,7 @@
    <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>