From 12ec8d26bfbc00a4f1a446a5505989cae6acdd52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Thu, 29 Sep 2022 16:14:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(charge):=E4=BF=AE=E6=AD=A3=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=AE=A1=E8=B4=B9=E6=97=A0=E6=B3=95=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/charge.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/charge.go b/service/charge.go index 558983b..d3fcead 100644 --- a/service/charge.go +++ b/service/charge.go @@ -210,8 +210,8 @@ func (_ChargeService) ListPagedChargeRecord(keyword, beginDate, endDate string, if len(keyword) != 0 { keywordCond := "%" + keyword + "%" cond = cond.WhereGroup(" and ", func(q *bun.SelectQuery) *bun.SelectQuery { - return q.Where("d.mame like ?", keywordCond). - WhereOr("d.abbr like ?", keywordCond) + return q.Where("detail.name like ?", keywordCond). + WhereOr("detail.abbr like ?", keywordCond) }) condition = append(condition, keyword) }