...
|
...
|
@@ -102,6 +102,7 @@ func (cooperationProjectService *CooperationProjectService) ListCooperationProje |
|
|
//项目名
|
|
|
CooperationProjectName: listCooperationProjectQuery.CooperationProjectName,
|
|
|
CompanyId: listCooperationProjectQuery.Operator.CompanyId,
|
|
|
OrgIds: listCooperationProjectQuery.Operator.OrgIds,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
@@ -146,16 +147,11 @@ func (cooperationProjectService *CooperationProjectService) UpdateCooperationPro |
|
|
func (cooperationProjectService *CooperationProjectService) ListCooperationProjectSelector(listCooperationProjectQuery *query.CooperationProjectSelectorQuery) (int64, interface{}, error) {
|
|
|
|
|
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(listCooperationProjectQuery.Operator)
|
|
|
orgIds := []string{}
|
|
|
for _, v := range listCooperationProjectQuery.Operator.OrgIds {
|
|
|
idStr := strconv.Itoa(int(v))
|
|
|
orgIds = append(orgIds, idStr)
|
|
|
}
|
|
|
result, err := creationCooperationGateway.CooperationProjectsSearch(allied_creation_cooperation.ReqCooperationProjectSearch{
|
|
|
PageSize: 999,
|
|
|
CooperationProjectNumber: listCooperationProjectQuery.MatchCooperationProjectNumber,
|
|
|
CompanyId: listCooperationProjectQuery.Operator.CompanyId,
|
|
|
OrgIds: orgIds,
|
|
|
OrgIds: listCooperationProjectQuery.Operator.OrgIds,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
|