diff --git a/emis-biz/src/main/resources/mapper/EmisDestinationMapper.xml b/emis-biz/src/main/resources/mapper/EmisDestinationMapper.xml index 4a7980c69..e832586d9 100644 --- a/emis-biz/src/main/resources/mapper/EmisDestinationMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisDestinationMapper.xml @@ -40,6 +40,7 @@ - select t1.scan_site_code,t1.scan_count,t2.sign_count,round(round(ifnull(t2.sign_count,0)/t1.scan_count,3)*100,1) as sign_rate + select t1.scan_site_code,t1.scan_count,ifnull(t2.sign_count,0) as sign_count,round(round(ifnull(t2.sign_count,0)/t1.scan_count,3)*100,1) as sign_rate from ( select a.scan_site_code ,count(DISTINCT a.main_bill_code) as scan_count from emis_tms_scan_record a,emis_waybill b