Commit 525e76ce by 杨林龙

优化不在店统计方式

1 parent d3ec2488
......@@ -63,7 +63,7 @@
<select id="getInStoreDataList" resultMap="InStoreDataMap">
select
case when teid.gps_state = 1 then 0 when teid.gps_state = 2 then count(1) else 0 end instoreCnt ,
sum(case when teid.gps_state = 1 then 0 when teid.gps_state = 2 then 1 else 0 end) as instoreCnt,
teid.gps_time ,
day(teid.gps_time) as dayOfMonth
from t_electric_instore_drive teid
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!