作者 陈志颖

fix:修复获取素币兑换清单参数问题

@@ -37,7 +37,7 @@ func (repository *ExchangeCashPersonListRepository) FindOne(queryOptions map[str @@ -37,7 +37,7 @@ func (repository *ExchangeCashPersonListRepository) FindOne(queryOptions map[str
37 tx := repository.transactionContext.PgTx 37 tx := repository.transactionContext.PgTx
38 exchangeCashListModel := new(models.ExchangeCashPersonList) 38 exchangeCashListModel := new(models.ExchangeCashPersonList)
39 query := tx.Model(exchangeCashListModel) 39 query := tx.Model(exchangeCashListModel)
40 - if exchangeCashListId, ok := queryOptions["id"]; ok { 40 + if exchangeCashListId, ok := queryOptions["listId"]; ok {
41 query = query.Where("exchange_cash_person_list.id = ?", exchangeCashListId) 41 query = query.Where("exchange_cash_person_list.id = ?", exchangeCashListId)
42 } 42 }
43 if err := query.First(); err != nil { 43 if err := query.First(); err != nil {