md
This commit is contained in:
parent
5e9039c85d
commit
01ab76f1a5
@ -889,14 +889,14 @@
|
|||||||
<if test="updateSite != null and updateSite != ''"> and a.update_site=#{updateSite}</if>
|
<if test="updateSite != null and updateSite != ''"> and a.update_site=#{updateSite}</if>
|
||||||
|
|
||||||
<if test="params.problemQueryType != null and params.problemQueryType == 1 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
<if test="params.problemQueryType != null and params.problemQueryType == 1 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
||||||
and a.bill_code in (
|
and exists (
|
||||||
select bill_code from emis_waybill_problem_info ewpi where ewpi.del_flag='0' and ewpi.`problem_type` is not null and FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} )
|
select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} )
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="params.problemQueryType != null and params.problemQueryType == 2 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
<if test="params.problemQueryType != null and params.problemQueryType == 2 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
||||||
and a.bill_code not in (
|
and not exists (
|
||||||
select bill_code from emis_waybill_problem_info ewpi where ewpi.del_flag='0' and FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} )
|
select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} )
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
@ -1190,14 +1190,14 @@
|
|||||||
|
|
||||||
|
|
||||||
<if test="params.problemQueryType != null and params.problemQueryType == 1 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
<if test="params.problemQueryType != null and params.problemQueryType == 1 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
||||||
and a.bill_code in (
|
and exists (
|
||||||
select bill_code from emis_waybill_problem_info ewpi where ewpi.del_flag='0' and FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} )
|
select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} )
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="params.problemQueryType != null and params.problemQueryType == 2 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
<if test="params.problemQueryType != null and params.problemQueryType == 2 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
||||||
and a.bill_code not in (
|
and not exists (
|
||||||
select bill_code from emis_waybill_problem_info ewpi where ewpi.del_flag='0' and FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} )
|
select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} )
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
@ -1563,12 +1563,12 @@
|
|||||||
<select id="getQueryStatInfoMap" parameterType="EmisWaybill" resultType="map">
|
<select id="getQueryStatInfoMap" parameterType="EmisWaybill" resultType="map">
|
||||||
select
|
select
|
||||||
count(1) as totalNum,
|
count(1) as totalNum,
|
||||||
sum(a.parcel_qty) as totalParcelQty,
|
ifnull(sum(a.parcel_qty),0) as totalParcelQty,
|
||||||
round(sum(bill_weight),2) as totalBillWeight,
|
ifnull(round(sum(bill_weight),2),0) as totalBillWeight,
|
||||||
round(sum(total_volume),5) as totalVolume,
|
ifnull(round(sum(total_volume),5),0) as totalVolume,
|
||||||
round(sum(volume_weight),2) as totalVolumeWeight,
|
ifnull(round(sum(volume_weight),2),0) as totalVolumeWeight,
|
||||||
round(sum(settlement_weight),2) as totalSettlementWeight,
|
ifnull(round(sum(settlement_weight),2),0) as totalSettlementWeight,
|
||||||
round(sum(freight),2) as totalFreight
|
ifnull(round(sum(freight),2),0) as totalFreight
|
||||||
from emis_waybill a
|
from emis_waybill a
|
||||||
<where>
|
<where>
|
||||||
a.del_flag='0' and a.order_status !='0' and a.order_status!='2'
|
a.del_flag='0' and a.order_status !='0' and a.order_status!='2'
|
||||||
@ -1733,14 +1733,14 @@
|
|||||||
<if test="updateSite != null and updateSite != ''"> and a.update_site=#{updateSite}</if>
|
<if test="updateSite != null and updateSite != ''"> and a.update_site=#{updateSite}</if>
|
||||||
|
|
||||||
<if test="params.problemQueryType != null and params.problemQueryType == 1 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
<if test="params.problemQueryType != null and params.problemQueryType == 1 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
||||||
and a.bill_code in (
|
and exists (
|
||||||
select bill_code from emis_waybill_problem_info ewpi where ewpi.del_flag='0' and FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} )
|
select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} )
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="params.problemQueryType != null and params.problemQueryType == 2 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
<if test="params.problemQueryType != null and params.problemQueryType == 2 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
||||||
and a.bill_code not in (
|
and not exists (
|
||||||
select bill_code from emis_waybill_problem_info ewpi where ewpi.del_flag='0' and FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} )
|
select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} )
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user