diff --git a/server/internal/api/ymt_merchants.go b/server/internal/api/ymt_merchants.go index 3ca372e..8984537 100644 --- a/server/internal/api/ymt_merchants.go +++ b/server/internal/api/ymt_merchants.go @@ -36,7 +36,7 @@ func (a *YMTMerchantsAPI) list(w http.ResponseWriter, r *http.Request) { args := []interface{}{} if userIDStr != "" { // user_id 匹配 或者 operation_user JSON 中包含该 user_id - sql1 += " AND (user_id = ? OR JSON_CONTAINS(operation_user, JSON_OBJECT('user_id', CAST(? AS SIGNED))))" + sql1 += " AND (user_id = ? OR JSON_CONTAINS(operation_user, JSON_OBJECT('userId', CAST(? AS SIGNED))))" args = append(args, userIDStr, userIDStr) } if like != "" {