Pārlūkot izejas kodu

统一 站点大屏 累计服务人次 = 管家列表中的服务人次之和

lilt085163@126.com 3 gadi atpakaļ
vecāks
revīzija
5f765b6890
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/main/resources/mybatis/StStationMapper.xml

+ 1 - 1
src/main/resources/mybatis/StStationMapper.xml

@@ -19,7 +19,7 @@
         (select count(1) from care_older a where a.station_id = t.id and a.safe_level = '1') threeLevelAmount,
         (select count(1) from care_sys_user b where b.station_id = t.id  and  b.role = 'chanmb' ) chamberlainAmount,
         (select count(1) from care_sys_user b where  b.station_id = t.id  and  b.role = 'chanmb' and  b.status = '3' ) chamberlainInServiceAmount,
-        (select count(1) from care_event_order c where c.station_id = t.id ) serveAmount,
+        (select count(1) from care_event_order_chamb c where c.station_id = t.id and status != 3) serveAmount,
         (select count(1) from care_event_order c where c.station_id = t.id and c.create_time >= CURDATE()) serveTodayAmount,
         (select count(1) from care_device d where d.station_id = t.id ) deviceAmount,
         (select count(1) from care_device d where d.station_id = t.id and d.dev_type = '1' and d.status = '1') indoorOnlineAmount,