...
|
...
|
@@ -118,6 +118,7 @@ func (dao *CooperationProjectDao) CheckProjectNameAvailable(queryOptions map[str |
|
|
if orgId, ok := queryOptions["orgId"]; ok && orgId.(int64) != 0 {
|
|
|
query = query.Where(`cooperation_project.org @> '{"orgId":"?"}'`, orgId)
|
|
|
}
|
|
|
query.Where("cooperation_project.status = ?", 1)
|
|
|
ok, err := query.Exists()
|
|
|
return !ok, err
|
|
|
}
|
...
|
...
|
|