...
|
...
|
@@ -265,6 +265,7 @@ func (repository *CooperationApplicationRepository) Find(queryOptions map[string |
|
|
// 获取共创项目
|
|
|
cooperationProjectModel := new(models.CooperationProject)
|
|
|
cooperationProjectQuery := tx.Model(cooperationProjectModel)
|
|
|
cooperationProjectQuery.AllWithDeleted()
|
|
|
if err := cooperationProjectQuery.
|
|
|
Where("company->>'companyId' = '?'", cooperationApplicationModel.Company.CompanyId).
|
|
|
Where("org->>'orgId' = '?'", cooperationApplicationModel.Org.OrgId).
|
...
|
...
|
@@ -275,6 +276,7 @@ func (repository *CooperationApplicationRepository) Find(queryOptions map[string |
|
|
// 获取共创模式
|
|
|
cooperationModeModel := new(models.CooperationMode)
|
|
|
cooperationModeQuery := tx.Model(cooperationModeModel)
|
|
|
cooperationModeQuery.AllWithDeleted()
|
|
|
if err := cooperationModeQuery.
|
|
|
Where("company->>'companyId' = '?'", cooperationApplicationModel.Company.CompanyId).
|
|
|
Where("org->>'orgId' = '?'", cooperationApplicationModel.Org.OrgId).
|
...
|
...
|
|