Explorar el Código

二期 管家小程序 bug

suntianwu hace 3 años
padre
commit
ccae440619
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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>