md
This commit is contained in:
parent
332e7fc18b
commit
84eec20982
@ -98,7 +98,7 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<select id="queryScanStatInfoDtlList" parameterType="EmisWaybill" resultMap="ScanStatInfoDtlResult">
|
<select id="queryScanStatInfoDtlList" parameterType="EmisWaybill" resultMap="ScanStatInfoDtlResult">
|
||||||
select main_bill_code as bill_code,
|
select main_bill_code as billCode,
|
||||||
sum(IF(scan_type='10',1,0)) as gotCount,
|
sum(IF(scan_type='10',1,0)) as gotCount,
|
||||||
sum(IF(scan_type='20',1,0)) as sendCount,
|
sum(IF(scan_type='20',1,0)) as sendCount,
|
||||||
sum(IF(scan_type='30',1,0)) as arrivalCount,
|
sum(IF(scan_type='30',1,0)) as arrivalCount,
|
||||||
@ -124,6 +124,15 @@
|
|||||||
<if test="params.endSendDate != null ">
|
<if test="params.endSendDate != null ">
|
||||||
and b.send_date <![CDATA[ <= ]]> #{params.endSendDate}
|
and b.send_date <![CDATA[ <= ]]> #{params.endSendDate}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="sendSiteCode != null and sendSiteCode != ''"> and b.send_site_code= #{sendSiteCode}</if>
|
||||||
|
<if test="sendCenterCode != null and sendCenterCode != ''"> and b.send_center_code= #{sendCenterCode}</if>
|
||||||
|
<if test="dispatchUnderlingSiteCode != null and dispatchUnderlingSiteCode != ''">
|
||||||
|
and b.dispatch_underling_site_code= #{dispatchUnderlingSiteCode}
|
||||||
|
</if>
|
||||||
|
<if test="destinationCenterCode != null and destinationCenterCode != ''">
|
||||||
|
and b.destination_center_code= #{destinationCenterCode}
|
||||||
|
</if>
|
||||||
|
|
||||||
<if test="params.privSiteCode != null and params.privSiteCode != '88888'">
|
<if test="params.privSiteCode != null and params.privSiteCode != '88888'">
|
||||||
and (
|
and (
|
||||||
a.dispatch_underling_site_code in (
|
a.dispatch_underling_site_code in (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user