<?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.TmCargoSourceMapper">

    <select id="selectOrderList" resultType="com.bs.tm.domain.TmCargoSource">
        select a.*,  c.cust_name
        from tm_cargo_source a
                 left join cm_cust c on a.cust_id = c.id
            ${ew.customSqlSegment}

    </select>
    <select id="selectOrderById" resultType="com.bs.tm.domain.TmCargoSource">
        select a.*, c.cust_name
        from tm_cargo_source a
                 left join cm_cust c on a.cust_id = c.id
        where a.id = #{id}

    </select>
</mapper>
