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