You've already forked FrameTour-BE
feat(service): 优化商品查询逻辑并新增分组查询接口
- 在 SourceMapper 中新增 queryGroupedByFaceAndType 方法,支持按 faceId 和 type 分组查询 - 调整 orderBiz.isBuy 方法的参数顺序,统一调用格式 - 修改 GoodsServiceImpl 中源素材查询逻辑,使用新分组方法减少循环嵌套 - 简化源素材去重及过滤禁用类型的处理流程 - 提前获取景区配置信息,避免重复查询 - 优化代码结构,提升可读性和维护性
This commit is contained in:
@@ -67,6 +67,13 @@ public interface SourceMapper {
|
||||
|
||||
List<SourceRespVO> queryByRelation(SourceReqQuery sourceReqQuery);
|
||||
|
||||
/**
|
||||
* 按 faceId 和 type 分组查询源素材,每组返回最新的一条记录
|
||||
* @param sourceReqQuery 查询参数
|
||||
* @return 分组后的素材列表
|
||||
*/
|
||||
List<SourceRespVO> queryGroupedByFaceAndType(SourceReqQuery sourceReqQuery);
|
||||
|
||||
SourceEntity querySameVideo(Long faceSampleId, Long deviceId);
|
||||
|
||||
int hasRelationTo(Long memberId, Long sourceId, int type);
|
||||
|
||||
Reference in New Issue
Block a user