unnamed.patch 1.4 KB

1234567891011121314151617
  1. Index: src/main/resources/mybatis/StStationMapper.xml
  2. IDEA additional info:
  3. Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
  4. <+>UTF-8
  5. ===================================================================
  6. --- src/main/resources/mybatis/StStationMapper.xml (revision 8cea4e85549a31012dfcb94a9599edcacffa041f)
  7. +++ src/main/resources/mybatis/StStationMapper.xml (revision )
  8. @@ -17,7 +17,8 @@
  9. (select count(1) from care_older a where a.station_id = t.id and a.safe_level = '1') oneLevelAmount,
  10. (select count(1) from care_older a where a.station_id = t.id and a.safe_level = '1') twoLevelAmount,
  11. (select count(1) from care_older a where a.station_id = t.id and a.safe_level = '1') threeLevelAmount,
  12. - (select count(1) from care_sys_user b where b.role = 'chanmb' ) chamberlainAmount,
  13. + (select count(1) from care_sys_user b where b.station_id = t.id and b.role = 'chanmb' ) chamberlainAmount,
  14. + (select count(DISTINCT chamb_id) from care_event_order_chamb b where b.station_id = t.id and b.status != '3' ) chamberlainInServiceAmount,
  15. (select count(1) from care_event_order c where c.station_id = t.id ) serveAmount,
  16. (select count(1) from care_event_order c where c.station_id = t.id and c.create_time >= CURDATE()) serveTodayAmount,
  17. (select count(1) from care_device d where d.station_id = t.id ) deviceAmount,