feat(printer):优化人脸样本使用逻辑并增强景区列表查询

- 修改 useSample 接口返回类型为 FaceRecognizeResp
- 增加根据样本ID和类型查询来源实体的逻辑
- 在景区列表查询中添加参数校验和异常处理
- 完善景区信息处理流程,增加设备数量统计
-优化景区距离计算与筛选逻辑
- 增加人脸匹配后自动添加照片到用户相册的功能
- 添加 XML 映射文件中新的查询语句实现
This commit is contained in:
2025-11-08 15:04:50 +08:00
parent fb75cbf230
commit 88c31d4fdc
6 changed files with 96 additions and 40 deletions

View File

@@ -354,4 +354,9 @@
inner join member_source ms on s.id = ms.source_id
where ms.face_id = #{faceId} and s.type = 2
</select>
<select id="getBySampleIdAndType" resultType="com.ycwl.basic.model.pc.source.entity.SourceEntity">
select *
from source
where face_sample_id = #{faceSampleId} and type = #{type}
</select>
</mapper>