liu 2 gadi atpakaļ
vecāks
revīzija
a9972627b8

+ 1 - 1
src/main/resources/mapper/template/DriverStockMapper.xml

@@ -40,7 +40,7 @@ where a.deleted =0 and a.is_cancel = 0) c group by `name`
     <!--访客统计-->
     <select id="getVisitorTj" resultMap="Tj">
         select case visitor_type when '1' then '家长' when '2' then '其他'
-            end as `name`, COUNT(*) as num from `smart_visitor` WHERE visitor_time>#{start} and #{end}>visitor_time  group by visitor_type
+            end as `name`, COUNT(*) as num from `smart_visitor` WHERE visitor_time>#{start} and #{end}>visitor_time  and deleted=0 and statu=9  group by visitor_type
     </select>
 
     <!--能耗总量统计-->