From 0c5b27d86434b155d37555581952b457b98ccdee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=B8=85?= <133814250@qq.com> Date: Sun, 23 Mar 2025 17:04:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D`GetComplexMemberIds`?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=9F=A5=E8=AF=A2=E5=A4=96=E7=9A=84WhereIn?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- server/internal/logic/admin/cash.go | 2 +- server/internal/logic/admin/credits_log.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index acb3e3c..fe6ce8f 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ ## License -[MIT © HotGo-2024](./LICENSE) +[MIT © HotGo-2025](./LICENSE) diff --git a/server/internal/logic/admin/cash.go b/server/internal/logic/admin/cash.go index 01b3b7b..9acd2e1 100644 --- a/server/internal/logic/admin/cash.go +++ b/server/internal/logic/admin/cash.go @@ -90,7 +90,7 @@ func (s *sAdminCash) List(ctx context.Context, in *adminin.CashListInp) (list [] if len(memberIds) == 0 { return nil, 0, nil } - mod = mod.WhereIn(dao.AdminOrder.Columns().MemberId, memberIds) + mod = mod.WhereIn("member_id", memberIds) } if len(in.CreatedAt) == 2 { diff --git a/server/internal/logic/admin/credits_log.go b/server/internal/logic/admin/credits_log.go index d06b66c..b23d1a2 100644 --- a/server/internal/logic/admin/credits_log.go +++ b/server/internal/logic/admin/credits_log.go @@ -184,7 +184,7 @@ func (s *sAdminCreditsLog) List(ctx context.Context, in *adminin.CreditsLogListI if len(memberIds) == 0 { return nil, 0, nil } - mod = mod.WhereIn(dao.AdminOrder.Columns().MemberId, memberIds) + mod = mod.WhereIn(dao.AdminCreditsLog.Columns().MemberId, memberIds) } // 查询应用id