闸机获取全量人脸数据接口调整

This commit is contained in:
hejiayang
2025-10-23 16:26:51 +08:00
parent 590e17bbe2
commit 744017cec9
@@ -93,13 +93,12 @@ SELECT
f.id AS id,
f.user_id AS userId,
f.face_feature_data AS faceFeatureData,
0 userType,
IF(s.user_type = 0 ,0,1) userType,
s.realname,
s.status
FROM st_user_faceimg f
JOIN sys_user_sub s ON f.user_id = s.id
WHERE s.user_type = 0
and f.del_flag = 0
WHERE f.del_flag = 0
and f.face_status = 1
and s.del_flag = 0
and f.face_feature_data is not null
@@ -112,12 +111,12 @@ SELECT
f.id AS id,
f.user_id AS userId,
f.face_feature_data AS faceFeatureData,
1 userType,
IF(s.user_type = 0 ,0,1) userType,
s.realname,
s.status
FROM st_user_faceimg_sub f
JOIN sys_user_sub s ON f.user_id = s.id
WHERE s.user_type != 0 and f.face_status = 1
WHERE f.face_status = 1
and f.del_flag = 0
and s.del_flag = 0
and f.face_feature_data is not null