소스 검색

修改大屏 服务中人数 bug

suntianwu 3 년 전
부모
커밋
bb90447f7e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/resources/mybatis/StStationMapper.xml

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

@@ -18,7 +18,7 @@
         (select count(1) from care_older a where a.station_id = t.id and a.safe_level = '1') twoLevelAmount,
         (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(DISTINCT chamb_id) from care_event_order_chamb b where  b.station_id = t.id  and  b.status != '3' ) chamberlainInServiceAmount,
+        (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 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,