...
|
...
|
@@ -41,6 +41,9 @@ func (srv CooperationApplicationsService) GetCooperationApplications(application |
|
|
resultApplication.CooperationProject.CooperationMode.CooperationModeNumber = resultProject.CooperationMode.CooperationModeNumber
|
|
|
resultApplication.CooperationProject.CooperationMode.CooperationModeName = resultProject.CooperationMode.CooperationModeName
|
|
|
resultApplication.CooperationProject.CooperationMode.CooperationModeId = resultProject.CooperationMode.CooperationModeId
|
|
|
|
|
|
resultApplication.Department.DepartmentID = resultApplication.Org.OrgID
|
|
|
resultApplication.Department.DepartmentName = resultApplication.Org.OrgName
|
|
|
return resultApplication, nil
|
|
|
}
|
|
|
|
...
|
...
|
@@ -75,6 +78,10 @@ func (srv CooperationApplicationsService) SearchCooperationApplications(applicat |
|
|
CompanyId: int(applicationQuery.Operator.CompanyId),
|
|
|
CooperationApplicationStatus: applicationQuery.Status,
|
|
|
})
|
|
|
for i := 0; i < len(resultApplications.Grid.List); i++ {
|
|
|
resultApplications.Grid.List[i].Department.DepartmentID = resultApplications.Grid.List[i].Org.OrgID
|
|
|
resultApplications.Grid.List[i].Department.DepartmentName = resultApplications.Grid.List[i].Org.OrgName
|
|
|
}
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
|
|
}
|
...
|
...
|
|