<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.fjhx.iot.mapper.tda.TdaProductMapper">
    <select id="getPage" resultType="com.fjhx.iot.entity.tda.vo.TdaProductVo">
        select
            tp.id,
            tp.tda_application_id,
            tp.app_id,
            tp.product_id,
            tp.name,
            tp.device_type,
            tp.manufacturer_name,
            tp.protocol_type,
            tp.data_format,
            tp.create_user,
            tp.create_time,
            tp.update_user,
            tp.update_time,
            ta.app_name
        from tda_product tp
            left join tda_application ta on tp.tda_application_id = ta.id
            ${ew.customSqlSegment}
    </select>

</mapper>
