diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/domain/stat/ScanStatDataInfo.java b/emis-biz/src/main/java/com/xdadan/erp/emis/domain/stat/ScanStatDataInfo.java
index de8de02dd..8f731ade3 100644
--- a/emis-biz/src/main/java/com/xdadan/erp/emis/domain/stat/ScanStatDataInfo.java
+++ b/emis-biz/src/main/java/com/xdadan/erp/emis/domain/stat/ScanStatDataInfo.java
@@ -18,10 +18,10 @@ import java.util.Map;
public class ScanStatDataInfo implements Serializable {
private static final long serialVersionUID = 1L;
- // 扫描记录数,已签收数量
+ // 扫描记录数,已签收数量,签收率
private Integer scanCount;
private Integer signCount;
-
+ private BigDecimal signRate;
// private String billCodeStr;
private String scanSiteCode;
diff --git a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml
index 319794d65..37a15445d 100644
--- a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml
+++ b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml
@@ -65,14 +65,9 @@
-
-
-
+
+
-
-
-
-
- select id, bill_code,
- main_bill_code, order_sn, scan_type,
+ select a.main_bill_code as bill_code,a.main_bill_code,a.scan_type,max(scan_date) as scan_date,
+ a.pre_or_next_station,a.pre_or_next_station_code,a.scan_site, a.scan_site_code,a.scan_man,a.scan_man_code
+ from emis_tms_scan_record a,emis_waybill b
+ where a.del_flag='0' and b.del_flag='0' and a.main_bill_code=b.bill_code and b.bl_sign!='1'
+ and a.main_bill_code in(
+ select x.main_bill_code
+ from emis_tms_scan_record x
+ where x.del_flag='0' and x.scan_site_code=#{scanSiteCode}
+ x.scan_type=#{scanType}
+ and x.pre_or_next_station_code=#{preOrNextStationCode}
+ and x.scan_man_code=#{scanManCode}
+ and x.scan_date = ]]> #{params.beginScanDate}
+ and x.scan_date #{params.endScanDate}
+ )
+
+ GROUP BY a.main_bill_code
+
+
+
+
+ select id, main_bill_code as bill_code,
+ order_sn, scan_type,
pre_or_next_station, pre_or_next_station_code,
pre_or_next_station_phone, pre_or_next_man_code, pre_or_next_man_phone, max(scan_date) as scan_date, scan_man_code,
scan_man_phone, scan_man, pre_or_next_man, scan_site, scan_site_code, scan_site_phone,
@@ -172,9 +192,9 @@
)
- and exists (select 1 from emis_waybill ewb where ewb.bl_sign != '1' and ewb.bill_code=a.bill_code)
+ and exists (select 1 from emis_waybill ewb where ewb.bl_sign != '1' and ewb.bill_code=a.main_bill_code)
- group by bill_code
+ group by main_bill_code