正在显示
1 个修改的文件
包含
6 行增加
和
2 行删除
1 | package service | 1 | package service |
2 | 2 | ||
3 | import ( | 3 | import ( |
4 | + "strconv" | ||
5 | + "strings" | ||
6 | + | ||
4 | "github.com/linmadan/egglib-go/core/application" | 7 | "github.com/linmadan/egglib-go/core/application" |
5 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/command" | 8 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/command" |
6 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/dto" | 9 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/dto" |
@@ -10,8 +13,6 @@ import ( | @@ -10,8 +13,6 @@ import ( | ||
10 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/allied_creation_user" | 13 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/allied_creation_user" |
11 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/log" | 14 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/log" |
12 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/util/blur" | 15 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/util/blur" |
13 | - "strconv" | ||
14 | - "strings" | ||
15 | ) | 16 | ) |
16 | 17 | ||
17 | // CooperationProjectService 共创项目服务 | 18 | // CooperationProjectService 共创项目服务 |
@@ -180,6 +181,9 @@ func extQuires(operator domain.Operator) []*allied_creation_cooperation.SearchCo | @@ -180,6 +181,9 @@ func extQuires(operator domain.Operator) []*allied_creation_cooperation.SearchCo | ||
180 | if u.UserType == domain.UserTypeVisitor { | 181 | if u.UserType == domain.UserTypeVisitor { |
181 | continue | 182 | continue |
182 | } | 183 | } |
184 | + if u.Company == nil { | ||
185 | + continue | ||
186 | + } | ||
183 | q := &allied_creation_cooperation.SearchCooperationProjectExtQuery{ | 187 | q := &allied_creation_cooperation.SearchCooperationProjectExtQuery{ |
184 | ExtCompanyId: int64(u.Company.CompanyId), | 188 | ExtCompanyId: int64(u.Company.CompanyId), |
185 | //ExtOrgId: int64(u.Org.OrgId), | 189 | //ExtOrgId: int64(u.Org.OrgId), |
-
请 注册 或 登录 后发表评论