map对齐
Build docker and publish / build (20.15.1) (push) Successful in 7m29s

This commit is contained in:
2026-03-07 07:42:09 -08:00
parent 1e14e2dbd9
commit 94f5d0c07d
2 changed files with 2 additions and 2 deletions
@@ -534,7 +534,7 @@ func (l *AttachTransactionLogic) validateOrderTradeNoBinding(orderInfo *ordermod
var boundOrder ordermodel.Order
err := l.svcCtx.DB.WithContext(l.ctx).
Model(&ordermodel.Order{}).
Where("trade_no IN ? AND order_no <> ? AND status IN ?", tradeNoCandidates, orderInfo.OrderNo, []uint8{orderStatusPaid, orderStatusFinished}).
Where("trade_no IN ? AND order_no <> ? AND status IN ?", tradeNoCandidates, orderInfo.OrderNo, []int64{int64(orderStatusPaid), int64(orderStatusFinished)}).
Order("id DESC").
First(&boundOrder).Error
if errors.Is(err, gorm.ErrRecordNotFound) {