feat(puzzle): 添加统计人脸ID生成记录数量功能

- 在PuzzleGenerationRecordMapper接口中新增countByFaceId方法
- 在PuzzleGenerationRecordMapper.xml中实现对应的SQL查询
- 支持根据faceId统计生成记录的数量
This commit is contained in:
2025-11-20 11:41:09 +08:00
parent 4cbd0dc255
commit 536f2866f6
2 changed files with 13 additions and 0 deletions

View File

@@ -31,6 +31,12 @@ public interface PuzzleGenerationRecordMapper {
*/
List<PuzzleGenerationRecordEntity> listByFaceId(@Param("faceId") Long faceId);
/**
* 统计人脸ID的生成记录数量
*/
int countByFaceId(@Param("faceId") Long faceId);
/**
* 插入记录
*/