fix(charge):修正用户计费无法搜索的问题。
This commit is contained in:
parent
e67b9afa68
commit
12ec8d26bf
|
@ -210,8 +210,8 @@ func (_ChargeService) ListPagedChargeRecord(keyword, beginDate, endDate string,
|
||||||
if len(keyword) != 0 {
|
if len(keyword) != 0 {
|
||||||
keywordCond := "%" + keyword + "%"
|
keywordCond := "%" + keyword + "%"
|
||||||
cond = cond.WhereGroup(" and ", func(q *bun.SelectQuery) *bun.SelectQuery {
|
cond = cond.WhereGroup(" and ", func(q *bun.SelectQuery) *bun.SelectQuery {
|
||||||
return q.Where("d.mame like ?", keywordCond).
|
return q.Where("detail.name like ?", keywordCond).
|
||||||
WhereOr("d.abbr like ?", keywordCond)
|
WhereOr("detail.abbr like ?", keywordCond)
|
||||||
})
|
})
|
||||||
condition = append(condition, keyword)
|
condition = append(condition, keyword)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user