md
This commit is contained in:
parent
28d8428d36
commit
20dc9e1f1a
@ -51,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="params.needTrace != null and params.needTrace != '1'">
|
||||
and last_waybill_status != '50'
|
||||
and DATE_SUB(CURDATE(), INTERVAL 30 DAY) <![CDATA[ <= ]]> date(last_trace_date)
|
||||
and update_time <![CDATA[ < ]]>SUBDATE(now(),interval -2 hour);
|
||||
</if>
|
||||
|
||||
</where>
|
||||
@ -61,14 +62,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select count(1) from emis_tms_transfer_trace
|
||||
where del_flag='0'
|
||||
and bill_code = #{billCode}
|
||||
<if test="transferExpress != null and transferExpress != ''">
|
||||
and transfer_express = #{transferExpress}
|
||||
</if>
|
||||
<if test="transferBillCode != null and transferBillCode != ''">
|
||||
and transfer_bill_code = #{transferBillCode}
|
||||
</if>
|
||||
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<!-- <if test="transferExpress != null and transferExpress != ''">-->
|
||||
<!-- and transfer_express = #{transferExpress}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="transferBillCode != null and transferBillCode != ''">-->
|
||||
<!-- and transfer_bill_code = #{transferBillCode}-->
|
||||
<!-- </if>-->
|
||||
|
||||
<select id="selectEmisTmsTransferTraceById" parameterType="Long" resultMap="EmisTmsTransferTraceResult">
|
||||
select id, bill_code, last_trace_date, last_waybill_status, trace_info, ch_id, transfer_bill_code, transfer_express, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
|
||||
Loading…
Reference in New Issue
Block a user