Explorar el Código

更新文件 WechatScanLoginMapper.xml

陈士柏 hace 2 años
padre
commit
6884113571
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/main/resources/mapper/template/WechatScanLoginMapper.xml

+ 1 - 1
src/main/resources/mapper/template/WechatScanLoginMapper.xml

@@ -50,7 +50,7 @@
         left join (
         left join (
             select identity_id,COUNT(*) as num from `smart_user`
             select identity_id,COUNT(*) as num from `smart_user`
             where is_cancel=0 and deleted=0 group by identity_id ) b
             where is_cancel=0 and deleted=0 group by identity_id ) b
-        on a.id=b.identity_id
+        on a.id=b.identity_id where a.`deleted`=0
     </select>
     </select>
 
 
     <!--用户总数-->
     <!--用户总数-->