feat(sis): 实现人脸识别后远程开门功能(测试)
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
@@ -5,16 +5,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<mapper namespace="org.dromara.sis.mapper.SisAuthRecordMapper">
|
||||
|
||||
<select id="checkAuth" resultType="org.dromara.sis.domain.vo.SisAuthRecordVo">
|
||||
SELECT
|
||||
device_type,
|
||||
device_id
|
||||
FROM sis_auth_record sar
|
||||
WHERE EXISTS (
|
||||
SELECT 1
|
||||
FROM sis_person_lib_img a
|
||||
INNER JOIN sis_lib_img_ref b ON a.id = b.img_id
|
||||
WHERE a.remote_img_id = #{personId}
|
||||
AND b.lib_id = sar.lib_id -- 关联主表
|
||||
)
|
||||
SELECT c.target_id, c.group_id, c.beg_date, c.end_date
|
||||
FROM sis_person_lib_img a
|
||||
LEFT JOIN resident_person b ON a.resident_person_id = b.id
|
||||
LEFT JOIN sis_auth_record c
|
||||
ON c.target_id = b.id
|
||||
AND c.group_id = b.auth_group_id
|
||||
WHERE a.remote_img_id = #{personId};
|
||||
</select>
|
||||
</mapper>
|
||||
|
Reference in New Issue
Block a user