You've already forked FrameTour-BE
fix(order): 修复订单购买状态判断逻辑
- 调整isBuy方法参数顺序,确保 memberId 和 scenicId 正确传递 - 在OrderBiz中设置默认buy状态为false,避免空指针异常 - 修改OrderMapper查询条件,增加refund_status=0过滤已退款订单 - 优化face服务中调用isBuy方法时的参数传递逻辑
This commit is contained in:
@@ -169,7 +169,8 @@ public class OrderBiz {
|
||||
respVO.setFree(false);
|
||||
return respVO;
|
||||
}
|
||||
return isBuy(memberId, scenicId, goodsType, goodsId);
|
||||
respVO.setBuy(false);
|
||||
return respVO;
|
||||
}
|
||||
|
||||
public IsBuyRespVO isBuy(Long userId, Long scenicId, int goodsType, Long goodsId) {
|
||||
|
||||
Reference in New Issue
Block a user