This commit is contained in:
@@ -72,7 +72,7 @@ func (m *customPaymentModel) FindListByPage(ctx context.Context, page, size int,
|
||||
func (m *customPaymentModel) FindListByPlatform(ctx context.Context, platform string) ([]*Payment, error) {
|
||||
var resp []*Payment
|
||||
err := m.QueryNoCacheCtx(ctx, &resp, func(conn *gorm.DB, v interface{}) error {
|
||||
return conn.Model(&Payment{}).Where("platform = ?", platform).Find(v).Error
|
||||
return conn.Model(&Payment{}).Where("LOWER(REPLACE(platform, '_', '')) = LOWER(REPLACE(?, '_', ''))", platform).Find(v).Error
|
||||
})
|
||||
return resp, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user