demand:
committer: heyu
This commit is contained in:
parent
9448674f48
commit
4d66d7a9b8
@ -3999,7 +3999,7 @@
|
||||
a.cust_no AS custNo,
|
||||
COUNT(DISTINCT a.bill_code) AS totalTickets,
|
||||
IFNULL(SUM(a.bill_weight), 0) AS totalWeight,
|
||||
GROUP_CONCAT(DISTINCT a.salesmen ORDER BY a.order_date SEPARATOR '/') AS salesmen,
|
||||
GROUP_CONCAT(DISTINCT cu.salesmen ORDER BY a.order_date SEPARATOR '/') AS salesmen,
|
||||
SUM(CASE WHEN a.send_country = '0086' AND tl.trans_type = '1' THEN 1 ELSE 0 END) AS expressTickets,
|
||||
IFNULL(SUM(CASE WHEN a.send_country = '0086' AND tl.trans_type = '1' THEN a.bill_weight ELSE 0 END), 0) AS expressWeight,
|
||||
SUM(CASE WHEN a.send_country = '0086' AND tl.trans_type = '2' THEN 1 ELSE 0 END) AS airTickets,
|
||||
@ -4116,6 +4116,14 @@
|
||||
<if test="custNo != null and custNo != ''">
|
||||
AND a.cust_no = #{custNo}
|
||||
</if>
|
||||
<!-- 寄件国家 -->
|
||||
<if test="sendCountry != null and sendCountry != ''">
|
||||
AND a.send_country = #{sendCountry}
|
||||
</if>
|
||||
<!-- 目的国家 -->
|
||||
<if test="receiveCountry != null and receiveCountry != ''">
|
||||
AND a.receive_country = #{receiveCountry}
|
||||
</if>
|
||||
<!-- 运输方式筛选 -->
|
||||
<if test="transType != null and transType != ''">
|
||||
AND EXISTS (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user