md
This commit is contained in:
parent
b6ec3ca8b8
commit
9065cfc4d2
@ -733,6 +733,9 @@ public class EmisWaybillController extends EmisBaseController
|
||||
if( "1".equals(waybillStatType)){
|
||||
list = emisWaybillService.selectWaitGotOrderList(queryEmisWaybill);
|
||||
}
|
||||
else if( "3".equals(waybillStatType) || "4".equals(waybillStatType) ){
|
||||
list = emisWaybillService.selectOrderList(queryEmisWaybill);
|
||||
}
|
||||
else {
|
||||
list = emisWaybillService.selectEmisWaybillList(queryEmisWaybill);
|
||||
}
|
||||
|
||||
@ -892,21 +892,7 @@
|
||||
<if test="createSite != null and createSite != ''"> and a.create_site=#{createSite}</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and a.update_site=#{updateSite}</if>
|
||||
|
||||
<if test="params.waybillStatType != null and params.waybillStatType == 1">
|
||||
and a.waybill_status='0' and a.order_status='0'
|
||||
</if>
|
||||
|
||||
<if test="params.waybillStatType != null and params.waybillStatType == 2">
|
||||
and a.waybill_status!='0' and a.order_status='1'
|
||||
</if>
|
||||
|
||||
<if test="params.waybillStatType != null and params.waybillStatType == 3">
|
||||
and a.waybill_status!='0'
|
||||
</if>
|
||||
|
||||
<if test="params.waybillStatType != null and params.waybillStatType == 4">
|
||||
|
||||
</if>
|
||||
|
||||
<if test="params.problemQueryType != null and params.problemQueryType == 1 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
||||
and a.bill_code in (
|
||||
@ -920,6 +906,42 @@
|
||||
)
|
||||
</if>
|
||||
|
||||
|
||||
<if test="params.waybillStatType != null and params.waybillStatType == 1">
|
||||
and a.order_type='0'
|
||||
and a.waybill_status='0'
|
||||
and a.order_status in('0','3')
|
||||
and (
|
||||
a.take_piece_employee_code=#{params.privEmpCode}
|
||||
or (a.pickup_method in('1','3') and a.operate_employee_code is null )
|
||||
or (a.operate_employee_code=#{params.privEmpCode} )
|
||||
)
|
||||
</if>
|
||||
|
||||
<if test="params.waybillStatType != null and params.waybillStatType == 2">
|
||||
and a.waybill_status!='0' and a.order_status!='2'
|
||||
and (
|
||||
a.operate_employee_code=#{params.privEmpCode}
|
||||
or a.take_piece_employee_code=#{params.privEmpCode}
|
||||
or a.register_man_code=#{params.privEmpCode}
|
||||
)
|
||||
</if>
|
||||
|
||||
<if test="params.waybillStatType != null and params.waybillStatType == 3">
|
||||
and a.order_status='2'
|
||||
and (
|
||||
a.operate_employee_code=#{params.privEmpCode}
|
||||
or a.take_piece_employee_code=#{params.privEmpCode}
|
||||
)
|
||||
</if>
|
||||
|
||||
<!-- 转单 -->
|
||||
<if test="params.waybillStatType != null and params.waybillStatType == 4">
|
||||
and a.order_status='3'and exists (
|
||||
select 1 from emis_waybill_change_to ewcto where a.bill_code=ewcto.bill_code and ewcto.change_from=#{params.privEmpCode}
|
||||
)
|
||||
</if>
|
||||
|
||||
<if test="params.beginOrderDate != null and params.beginOrderDate != ''">
|
||||
and a.order_date <![CDATA[ >= ]]> #{params.beginOrderDate}
|
||||
</if>
|
||||
@ -948,13 +970,12 @@
|
||||
</if>
|
||||
|
||||
<if test="params.beginDate != null and params.beginDate != ''">
|
||||
and a.send_date <![CDATA[ >= ]]> #{params.beginDate}
|
||||
and a.create_time <![CDATA[ >= ]]> #{params.beginDate}
|
||||
</if>
|
||||
<if test="params.endDate != null and params.endDate != ''">
|
||||
and a.send_date <![CDATA[ <= ]]> #{params.endDate}
|
||||
and a.create_time <![CDATA[ <= ]]> #{params.endDate}
|
||||
</if>
|
||||
|
||||
|
||||
<if test="params.beginSendDate != null and params.beginSendDate != ''">
|
||||
and a.send_date <![CDATA[ >= ]]> #{params.beginSendDate}
|
||||
</if>
|
||||
@ -1719,11 +1740,6 @@
|
||||
<if test="createSite != null and createSite != ''"> and a.create_site=#{createSite}</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and a.update_site=#{updateSite}</if>
|
||||
|
||||
|
||||
<if test="params.waybillStatType != null and params.waybillStatType == 1">
|
||||
and a.waybill_status='0' and a.order_status in('0','1')
|
||||
</if>
|
||||
|
||||
<if test="params.problemQueryType != null and params.problemQueryType == 1 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
||||
and a.bill_code in (
|
||||
select bill_code from emis_waybill_problem_info ewpi where ewpi.del_flag='0' and FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} )
|
||||
@ -1737,16 +1753,39 @@
|
||||
</if>
|
||||
|
||||
|
||||
<if test="params.waybillStatType != null and params.waybillStatType == 1">
|
||||
and a.order_type='0'
|
||||
and a.waybill_status='0'
|
||||
and a.order_status in('0','3')
|
||||
and (
|
||||
a.take_piece_employee_code=#{params.privEmpCode}
|
||||
or (a.pickup_method in('1','3') and a.operate_employee_code is null )
|
||||
or (a.operate_employee_code=#{params.privEmpCode} )
|
||||
)
|
||||
</if>
|
||||
|
||||
<if test="params.waybillStatType != null and params.waybillStatType == 2">
|
||||
and a.waybill_status!='0' and a.order_status='1'
|
||||
and a.waybill_status!='0' and a.order_status!='2'
|
||||
and (
|
||||
a.operate_employee_code=#{params.privEmpCode}
|
||||
or a.take_piece_employee_code=#{params.privEmpCode}
|
||||
or a.register_man_code=#{params.privEmpCode}
|
||||
)
|
||||
</if>
|
||||
|
||||
<if test="params.waybillStatType != null and params.waybillStatType == 3">
|
||||
and a.waybill_status!='0'
|
||||
and a.order_status='2'
|
||||
and (
|
||||
a.operate_employee_code=#{params.privEmpCode}
|
||||
or a.take_piece_employee_code=#{params.privEmpCode}
|
||||
)
|
||||
</if>
|
||||
|
||||
<!-- 转单 -->
|
||||
<if test="params.waybillStatType != null and params.waybillStatType == 4">
|
||||
|
||||
and a.order_status='3'and exists (
|
||||
select 1 from emis_waybill_change_to ewcto where a.bill_code=ewcto.bill_code and ewcto.change_from=#{params.privEmpCode}
|
||||
)
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user