Browse Source

二期 管家小程序 bug

suntianwu 3 years ago
parent
commit
ccae440619
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/main/resources/mybatis/CareSysUserMapper.xml

+ 3 - 3
src/main/resources/mybatis/CareSysUserMapper.xml

@@ -4,9 +4,9 @@
 
    <select id="queryOlderCountByChambId" resultType="java.lang.Integer">
     select count(o.id)
-    from care_older o
-    left join care_house h on h.id = o.house_id
-    left join care_sys_user csu on csu.id = h.chamb_id
+    from care_house_older_rel o
+    left join care_device d on d.house_id = o.house_id
+    left join care_sys_user csu on csu.id = d.chamb_id
     where csu.id = #{id}
 
 </select>