You've already forked FrameTour-BE
feat(order): 新增根据人脸ID查询购买记录功能
- 在OrderBiz中增加isBuy方法重载,支持通过人脸ID查询购买记录 - 修改AppPuzzleController中调用参数顺序,适配新方法签名 - 在OrderMapper接口中新增getUserBuyFaceItem方法定义 - 在OrderMapper.xml中实现getUserBuyFaceItem的SQL查询逻辑 - 调整FaceServiceImpl中相关调用逻辑,移除冗余配置获取代码
This commit is contained in:
@@ -160,6 +160,17 @@ public class OrderBiz {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
public IsBuyRespVO isBuy(Long scenicId, Long memberId, Long faceId, int goodsType, Long goodsId) {
|
||||
IsBuyRespVO respVO = new IsBuyRespVO();
|
||||
OrderEntity orderEntity = orderMapper.getUserBuyFaceItem(memberId, faceId, goodsType, goodsId);
|
||||
if (orderEntity != null) {
|
||||
respVO.setOrderId(orderEntity.getId());
|
||||
respVO.setBuy(true);
|
||||
respVO.setFree(false);
|
||||
return respVO;
|
||||
}
|
||||
return isBuy(memberId, scenicId, goodsType, goodsId);
|
||||
}
|
||||
|
||||
public IsBuyRespVO isBuy(Long userId, Long scenicId, int goodsType, Long goodsId) {
|
||||
IsBuyRespVO respVO = new IsBuyRespVO();
|
||||
|
||||
Reference in New Issue
Block a user