fix(charge):修正用户计费无法搜索的问题。

This commit is contained in:
徐涛 2022-09-29 16:14:41 +08:00
parent e67b9afa68
commit 12ec8d26bf

View File

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