<?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.yeejoin.amos.boot.module.tzs.api.mapper.ElevatorInsureMapper">


    <select id="getInsureInfoByElevatorCode" resultType="com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorInsureDto">
       SELECT
            t.*
        FROM
            tz_elevator_insure t
        LEFT JOIN tz_elevator_insure_relation r ON r.insure_code = t.insure_num
        WHERE
            r.elevator_code =#{elevatorCode} and t.is_delete = 0
    </select>

</mapper>
