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) }