正在显示
2 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -17,6 +17,8 @@ type SearchCooperationModeQuery struct { | @@ -17,6 +17,8 @@ type SearchCooperationModeQuery struct { | ||
| 17 | CooperationModeName string `cname:"共创模式名称" json:"cooperationModeName,omitempty"` | 17 | CooperationModeName string `cname:"共创模式名称" json:"cooperationModeName,omitempty"` |
| 18 | // 组织机构名称 | 18 | // 组织机构名称 |
| 19 | OrganizationName string `cname:"组织机构名称" json:"organizationName,omitempty"` | 19 | OrganizationName string `cname:"组织机构名称" json:"organizationName,omitempty"` |
| 20 | + //模式编码列表 | ||
| 21 | + CooperationModeNumbers []string `cname:"模式编码列表" json:"cooperationModeNumbers,omitempty"` | ||
| 20 | // 公司ID,通过集成REST上下文获取 | 22 | // 公司ID,通过集成REST上下文获取 |
| 21 | CompanyId int64 `cname:"公司ID" json:"companyId"` | 23 | CompanyId int64 `cname:"公司ID" json:"companyId"` |
| 22 | // 组织机构ID | 24 | // 组织机构ID |
| @@ -190,7 +190,7 @@ func (repository *CooperationModeRepository) Find(queryOptions map[string]interf | @@ -190,7 +190,7 @@ func (repository *CooperationModeRepository) Find(queryOptions map[string]interf | ||
| 190 | if orgId, ok := queryOptions["orgId"]; ok && orgId.(int64) != 0 { | 190 | if orgId, ok := queryOptions["orgId"]; ok && orgId.(int64) != 0 { |
| 191 | query.Where("org->>'orgId' = '?'", orgId) | 191 | query.Where("org->>'orgId' = '?'", orgId) |
| 192 | } | 192 | } |
| 193 | - if orgIds, ok := queryOptions["orgIds"]; ok && len(orgIds.([]int64)) > 0 { | 193 | + if orgIds, ok := queryOptions["orgIds"]; ok && len(orgIds.([]string)) > 0 { |
| 194 | query.Where("org->>'orgId' in (?)", pg.In(orgIds)) | 194 | query.Where("org->>'orgId' in (?)", pg.In(orgIds)) |
| 195 | } | 195 | } |
| 196 | offsetLimitFlag := true | 196 | offsetLimitFlag := true |
-
请 注册 或 登录 后发表评论