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