|
|
|
@ -19,5 +19,70 @@
|
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="findUpdateWaybillList" resultType="com.logpm.trunkline.vo.TrunklineWaybillTrackVO"> |
|
|
|
|
select ltwt.waybill_no waybillNo, |
|
|
|
|
lww.departure_warehouse_name openWarehouseName, |
|
|
|
|
ltwt.check_status checkStatus, |
|
|
|
|
lww.waybill_type waybillType, |
|
|
|
|
lww.agent agent, |
|
|
|
|
lww.document_making_time openTime, |
|
|
|
|
ltwt.create_time applyTime, |
|
|
|
|
ltwt.warehouse_name applyWarehouseName, |
|
|
|
|
ltwt.create_user_name createUserName, |
|
|
|
|
ltwt.refer refer, |
|
|
|
|
ltwt.operation_remark operationRemark, |
|
|
|
|
ltwt.check_time checkTime |
|
|
|
|
from logpm_trunkline_waybill_track ltwt |
|
|
|
|
left join logpm_warehouse_waybill lww on lww.id = ltwt.waybill_id |
|
|
|
|
where 1=1 |
|
|
|
|
<if test="param.warehouseIds != null and param.warehouseIds.size() > 0"> |
|
|
|
|
<foreach collection="param.warehouseIds" item="item" open="(" separator="," close=")"> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
</if> |
|
|
|
|
<if test="param.waybillNo != null and param.waybillNo != ''"> |
|
|
|
|
and Locate(#{param.waybillNo},ltwt.waybill_no) > 0 |
|
|
|
|
</if> |
|
|
|
|
<if test="param.openWarehouseName != null and param.openWarehouseName != ''"> |
|
|
|
|
and Locate(#{param.openWarehouseName},lww.departure_warehouse_name) > 0 |
|
|
|
|
</if> |
|
|
|
|
<if test="param.checkStatus != null "> |
|
|
|
|
and ltwt.check_status = #{param.checkStatus} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.waybillType != null "> |
|
|
|
|
and lww.waybill_type = #{param.waybillType} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.agent != null and param.agent != ''"> |
|
|
|
|
and Locate(#{param.agent},lww.agent) > 0 |
|
|
|
|
</if> |
|
|
|
|
<if test="param.applyWarehouseName != null and param.applyWarehouseName != ''"> |
|
|
|
|
and Locate(#{param.applyWarehouseName},ltwt.warehouse_name) > 0 |
|
|
|
|
</if> |
|
|
|
|
<if test="param.createUserName != null and param.createUserName != ''"> |
|
|
|
|
and Locate(#{param.createUserName},ltwt.create_user_name) > 0 |
|
|
|
|
</if> |
|
|
|
|
<if test="param.refer != null and param.refer != ''"> |
|
|
|
|
and Locate(#{param.refer},ltwt.refer) > 0 |
|
|
|
|
</if> |
|
|
|
|
<if test="param.applyTimeStart != null"> |
|
|
|
|
and ltwt.create_time >= #{param.applyTimeStart} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.applyTimeEnd != null"> |
|
|
|
|
and ltwt.create_time <= #{param.applyTimeEnd} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.openTimeStart != null"> |
|
|
|
|
and lww.document_making_time >= #{param.openTimeStart} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.openTimeEnd != null"> |
|
|
|
|
and lww.document_making_time <= #{param.openTimeEnd} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.checkTimeStart != null"> |
|
|
|
|
and ltwt.check_time >= #{param.checkTimeStart} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.checkTimeEnd != null"> |
|
|
|
|
and ltwt.check_time <= #{param.checkTimeEnd} |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
</mapper> |
|
|
|
|