diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
index 47fcc973e..cd84d7439 100644
--- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
+++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
@@ -1850,133 +1850,78 @@
count(1) as totalNum,
sum(a.parcel_qty) as totalParcelQty,
round(sum(bill_weight),2) as totalBillWeight,
- round(sum(total_volume),5) as totalVolume,
- round(sum(volume_weight),2) as totalVolumeWeight,
- round(sum(settlement_weight),2) as totalSettlementWeight,
- round(sum(freight),2) as totalFreight
+ round(sum(total_volume),4) as totalVolume
from emis_waybill a
a.del_flag='0' and a.order_status !='0' and a.order_status!='2'
+ and ( a.problem_type is null or (a.problem_type is not null and (a.problem_type != 173 and a.problem_type != 170 and a.problem_type != 151) ) )
-
+
+ and to_days(a.send_date) = to_days(now())
+
+
+
+ and DATE_SUB(CURDATE(), INTERVAL 7 DAY) a.send_date
+
+
+
+ and QUARTER(a.send_date)=QUARTER(now()) and YEAR(a.send_date)=YEAR(NOW())
+
+
+
+ and YEAR(a.send_date)=YEAR(NOW())
+
+
+
and a.salesmen=#{salesmen}
-
- and a.send_date = ]]> #{params.beginDate}
-
-
- and a.send_date #{params.endDate}
-
-
-
- and (
-
- a.send_site_code in (
- SELECT t1.site_code FROM (
- SELECT * FROM emis_site WHERE parent_site_code IS NOT NULL ) t1,( SELECT @pid :=
- #{params.privSiteCode} ) pd
- WHERE FIND_IN_SET( parent_site_code, @pid ) > 0 AND @pid := concat(@pid,',',site_code)
- UNION
- SELECT #{params.privSiteCode} FROM dual
- )
- or
- a.dispatch_site_code in (
- SELECT t1.site_code FROM (
- SELECT * FROM emis_site WHERE parent_site_code IS NOT NULL ) t1,( SELECT @pid :=
- #{params.privSiteCode} ) pd
- WHERE FIND_IN_SET( parent_site_code, @pid ) > 0 AND @pid := concat(@pid,',',site_code)
- UNION
- SELECT #{params.privSiteCode} FROM dual
- )
-
- or EXISTS (select 1 from emis_tms_scan_record etsr where a.bill_code=etsr.main_bill_code and etsr.scan_site_code=#{params.privSiteCode})
-
-
-
- or EXISTS (
- select 1 from emis_customer_user ecu where a.cust_no=ecu.monthly_pay_code and ecu.owner_site=#{params.privSiteCode}
- )
-
-
- or a.salesmen=#{params.privEmpName}
- or a.payee=#{params.privEmpName}
- or a.operate_employee_code=#{params.privEmpCode}
- or a.take_piece_employee_code=#{params.privEmpCode}
- )
-
-