...
|
...
|
@@ -249,8 +249,10 @@ func (repository *CooperationApplicationRepository) Find(queryOptions map[string |
|
|
query.Where(`(cooperation_application.cooperation_application_applicant->>'userBaseId' ='?')`, userBaseId)
|
|
|
}
|
|
|
if isCanceled, ok := queryOptions["isCanceled"]; ok && isCanceled.(int32) != 0 {
|
|
|
if isCanceled.(int32) != 3 {
|
|
|
query.Where("is_canceled = ?", isCanceled)
|
|
|
}
|
|
|
}
|
|
|
if companyId, ok := queryOptions["companyId"]; ok && companyId.(int64) != 0 {
|
|
|
query.Where("company->>'companyId' = '?'", companyId)
|
|
|
}
|
...
|
...
|
|