已退回后的还是可以继续提交
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m49s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m49s
This commit is contained in:
@@ -109,14 +109,13 @@ func (s *RefundStore) List(ctx context.Context, opts *store.QueryOptions, filter
|
||||
return requests, total, nil
|
||||
}
|
||||
|
||||
// FindActiveByOrderID 查找订单关联的活跃退款申请(状态为待审批、已通过、已退回)
|
||||
// FindActiveByOrderID 查找订单关联的活跃退款申请(状态为待审批、已通过)
|
||||
func (s *RefundStore) FindActiveByOrderID(ctx context.Context, orderID uint) (*model.RefundRequest, error) {
|
||||
var req model.RefundRequest
|
||||
err := s.db.WithContext(ctx).
|
||||
Where("order_id = ? AND status IN ?", orderID, []int{
|
||||
model.RefundStatusPending,
|
||||
model.RefundStatusApproved,
|
||||
model.RefundStatusReturned,
|
||||
}).
|
||||
First(&req).Error
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user