正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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 { |
-
请 注册 或 登录 后发表评论