fix: 修复退款与仪表盘订单统计口径
Build docker and publish / build (20.15.1) (push) Failing after 8m16s

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
2026-05-24 17:48:31 -07:00
parent 1726a584fa
commit 3bbce5ce84
3 changed files with 21 additions and 21 deletions
@@ -117,7 +117,7 @@ func (l *RefundOrderLogic) RefundOrder(req *types.RefundOrderRequest) error {
}
if err := tx.Model(&modelorder.Order{}).
Where("id = ? AND status IN ?", orderInfo.Id, []uint8{2, 5}).
Where("id = ? AND status IN ?", orderInfo.Id, []int{2, 5}).
Update("status", orderStatusRefunded).Error; err != nil {
return errors.Wrapf(xerr.NewErrCode(xerr.DatabaseUpdateError), "refund order status update failed: %v", err)
}