|
@@ -102,7 +102,7 @@ func (repository *SuMoneyTransactionRecordRepository) Find(queryOptions map[stri |
|
@@ -102,7 +102,7 @@ func (repository *SuMoneyTransactionRecordRepository) Find(queryOptions map[stri |
102
|
if uid, ok := queryOptions["uid"]; ok && (uid != int64(0)) {
|
102
|
if uid, ok := queryOptions["uid"]; ok && (uid != int64(0)) {
|
103
|
query = query.Where(`su_money_transaction_record.employee @> '{"uid":?}'`, uid)
|
103
|
query = query.Where(`su_money_transaction_record.employee @> '{"uid":?}'`, uid)
|
104
|
}
|
104
|
}
|
105
|
- if employeeMatchName, ok := queryOptions["employeeMatchName"]; ok && (employeeMatchName != "") {
|
105
|
+ if employeeMatchName, ok := queryOptions["employeeMatchName"]; ok && (employeeMatchName.(string) != "") {
|
106
|
query = query.Where(`(su_money_transaction_record.employee->>'employeeName')::text LIKE ?`, fmt.Sprintf("%%%s%%", employeeMatchName.(string)))
|
106
|
query = query.Where(`(su_money_transaction_record.employee->>'employeeName')::text LIKE ?`, fmt.Sprintf("%%%s%%", employeeMatchName.(string)))
|
107
|
}
|
107
|
}
|
108
|
if recordType, ok := queryOptions["recordType"]; ok && (recordType != 0) {
|
108
|
if recordType, ok := queryOptions["recordType"]; ok && (recordType != 0) {
|