<?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.bs.tm.mapper.TmDriverMapper">

    <select id="selectDriverList" resultType="com.bs.tm.domain.TmDriver">
        select a.*,b.cust_name from tm_driver a left join cm_cust b on a.CUST_CODE = b.CUST_CODE
        ${ew.customSqlSegment}
    </select>

    <select id="selectDriverById" resultType="com.bs.tm.domain.TmDriver">
        select a.*,b.cust_name,b.id from tm_driver a left join cm_cust b on a.CUST_CODE = b.CUST_CODE
           where DRIVER_ID = #{driverId}
    </select>
</mapper>
