搜索用户时,过滤掉被删除的用户

This commit is contained in:
heavyrian2012
2023-02-20 19:30:08 +08:00
parent 23871487e4
commit 704e6e0ec2
@@ -203,7 +203,7 @@ public class DatabaseStore {
}
sql += " and _type <> 2"; //can search normal user(0) and robot(1) and admin(100), can not search things
sql += " and `_type` <> 2 and `_deleted` = 0"; //can search normal user(0) and robot(1) and admin(100), can not search things
if (searchType == SearchUserType_Name_Mobile || searchType == SearchUserType_Name || searchType == SearchUserType_Mobile) {
sql += " limit 1";