...
|
...
|
@@ -574,8 +574,11 @@ func (repository *DividendsReturnedOrderRepository) Find(queryOptions map[string |
|
|
if dividendsOrderNumber, ok := queryOptions["dividendsOrderNumber"]; ok && dividendsOrderNumber != "" {
|
|
|
query.Where("dividends_order_number = ?", dividendsOrderNumber)
|
|
|
}
|
|
|
if originalOrderNum, ok := queryOptions["originalOrderNum"]; ok && originalOrderNum != "" {
|
|
|
query.Where("original_order_num like ?", fmt.Sprintf("%%%s%%", originalOrderNum))
|
|
|
}
|
|
|
if dividendsReturnedOrderNumber, ok := queryOptions["dividendsReturnedOrderNumber"]; ok && dividendsReturnedOrderNumber != "" {
|
|
|
query.Where("dividends_returned_order_number ilike ?", fmt.Sprintf("%%%s%%", dividendsReturnedOrderNumber))
|
|
|
query.Where("dividends_returned_order_number like ?", fmt.Sprintf("%%%s%%", dividendsReturnedOrderNumber))
|
|
|
}
|
|
|
if dividendsReturnedOrderNumbers, ok := queryOptions["dividendsReturnedOrderNumbers"]; ok && len(dividendsReturnedOrderNumbers.([]string)) > 0 {
|
|
|
query.Where("dividends_returned_order_number IN (?)", pg.In(dividendsReturnedOrderNumbers.([]string)))
|
...
|
...
|
|