|
|
@ -3,14 +3,14 @@ |
|
|
<mapper namespace="com.spring.modules.shipment.mapper.ShipmentMapper"> |
|
|
<mapper namespace="com.spring.modules.shipment.mapper.ShipmentMapper"> |
|
|
|
|
|
|
|
|
<sql id="columns"> |
|
|
<sql id="columns"> |
|
|
ifs.shipment_id,ifs.site,ifs.customer_no,ifs.customer_name,ifs.ship_date |
|
|
|
|
|
|
|
|
ifs.shipment_id,ifs.site,ifs.customer_no,ifs.customer_name,ifs.ship_date,sh.create_date |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<select id="selectShipmentList" resultType="com.spring.modules.shipment.entity.Shipment"> |
|
|
<select id="selectShipmentList" resultType="com.spring.modules.shipment.entity.Shipment"> |
|
|
select <include refid="columns" /> from v_ifs_shipment ifs |
|
|
select <include refid="columns" /> from v_ifs_shipment ifs |
|
|
left join shipment_handle sh on ifs.shipment_id = sh.shipment_id and ifs.site = sh.site |
|
|
left join shipment_handle sh on ifs.shipment_id = sh.shipment_id and ifs.site = sh.site |
|
|
<where> |
|
|
<where> |
|
|
and sh.create_date is null |
|
|
|
|
|
|
|
|
<!-- and sh.create_date is null--> |
|
|
<if test="site != null and site != ''"> |
|
|
<if test="site != null and site != ''"> |
|
|
and ifs.site = #{site} |
|
|
and ifs.site = #{site} |
|
|
</if> |
|
|
</if> |
|
|
@ -30,7 +30,7 @@ |
|
|
select <include refid="columns" /> from v_ifs_shipment ifs |
|
|
select <include refid="columns" /> from v_ifs_shipment ifs |
|
|
left join shipment_handle sh on ifs.shipment_id = sh.shipment_id and ifs.site = sh.site |
|
|
left join shipment_handle sh on ifs.shipment_id = sh.shipment_id and ifs.site = sh.site |
|
|
<where> |
|
|
<where> |
|
|
and sh.create_date is null |
|
|
|
|
|
|
|
|
<!-- and sh.create_date is null--> |
|
|
<if test="params.site != null and params.site != ''"> |
|
|
<if test="params.site != null and params.site != ''"> |
|
|
and ifs.site = #{params.site} |
|
|
and ifs.site = #{params.site} |
|
|
</if> |
|
|
</if> |
|
|
|