正在显示
1 个修改的文件
包含
10 行增加
和
0 行删除
@@ -4,6 +4,7 @@ import ( | @@ -4,6 +4,7 @@ import ( | ||
4 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationApplication/command" | 4 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationApplication/command" |
5 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationApplication/query" | 5 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationApplication/query" |
6 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationApplication/service" | 6 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationApplication/service" |
7 | + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log" | ||
7 | ) | 8 | ) |
8 | 9 | ||
9 | type CooperationApplicationController struct { | 10 | type CooperationApplicationController struct { |
@@ -137,6 +138,15 @@ func (controller *CooperationApplicationController) RemoveCooperationApplication | @@ -137,6 +138,15 @@ func (controller *CooperationApplicationController) RemoveCooperationApplication | ||
137 | func (controller *CooperationApplicationController) SearchCooperationApplication() { | 138 | func (controller *CooperationApplicationController) SearchCooperationApplication() { |
138 | cooperationApplicationService := service.NewCooperationApplicationService(nil) | 139 | cooperationApplicationService := service.NewCooperationApplicationService(nil) |
139 | searchCooperationApplicationQuery := &query.SearchCooperationApplicationQuery{} | 140 | searchCooperationApplicationQuery := &query.SearchCooperationApplicationQuery{} |
141 | + err := controller.Unmarshal(searchCooperationApplicationQuery) | ||
142 | + if err != nil { | ||
143 | + log.Logger.Error("json 解析失败" + err.Error()) | ||
144 | + } | ||
145 | + header := controller.GetRequestHeader(controller.Ctx) | ||
146 | + searchCooperationApplicationQuery.CompanyId = header.CompanyId | ||
147 | + searchCooperationApplicationQuery.OrgId = header.OrgId | ||
148 | + searchCooperationApplicationQuery.UserId = header.UserId | ||
149 | + searchCooperationApplicationQuery.UserBaseId = header.UserBaseId | ||
140 | data, err := cooperationApplicationService.SearchCooperationApplication(searchCooperationApplicationQuery) | 150 | data, err := cooperationApplicationService.SearchCooperationApplication(searchCooperationApplicationQuery) |
141 | controller.Response(data, err) | 151 | controller.Response(data, err) |
142 | } | 152 | } |
-
请 注册 或 登录 后发表评论