增加查询用户数量

This commit is contained in:
2026-03-04 09:03:32 +08:00
parent 037816c303
commit 513f4dbaea
3 changed files with 54 additions and 1 deletions
@@ -97,4 +97,11 @@ public interface FaceDao {
*/
@Query("DELETE from face WHERE user_type = '2'")
int deleteTempUserFaceData();
/**
* 查询用户人脸数
* @param userType 1-会员,2-临时用户
*/
@Query("SELECT COUNT(1) FROM face WHERE user_type = :userType")
int getFaceCount(String userType);
}