|
@@ -40,7 +40,7 @@ where a.deleted =0 and a.is_cancel = 0) c group by `name`
|
|
|
<!--访客统计-->
|
|
<!--访客统计-->
|
|
|
<select id="getVisitorTj" resultMap="Tj">
|
|
<select id="getVisitorTj" resultMap="Tj">
|
|
|
select case visitor_type when '1' then '家长' when '2' then '其他'
|
|
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>
|
|
</select>
|
|
|
|
|
|
|
|
<!--能耗总量统计-->
|
|
<!--能耗总量统计-->
|