Merge branch 'dev' of http://gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway into dev
正在显示
5 个修改的文件
包含
48 行增加
和
28 行删除
@@ -97,8 +97,8 @@ func (dividendsEstimateService *DividendsEstimateService) SearchDividendsEstimat | @@ -97,8 +97,8 @@ func (dividendsEstimateService *DividendsEstimateService) SearchDividendsEstimat | ||
97 | DividendsIncentivesStage: v.DividendsStage, | 97 | DividendsIncentivesStage: v.DividendsStage, |
98 | IsCanceled: v.IsCanceled, | 98 | IsCanceled: v.IsCanceled, |
99 | } | 99 | } |
100 | - item.DividendsUser.Phone = v.DividendsUser.UserPhone | ||
101 | - item.DividendsUser.UsersName = v.DividendsUser.UserName | 100 | + item.DividendsUser.Phone = v.DividendsUser.UserInfo.UserPhone |
101 | + item.DividendsUser.UsersName = v.DividendsUser.UserInfo.UserName | ||
102 | item.DividendsUser.UsersId = v.DividendsUser.UserId | 102 | item.DividendsUser.UsersId = v.DividendsUser.UserId |
103 | item.DividendsUser.UserBaseId = v.DividendsUser.UserBaseId | 103 | item.DividendsUser.UserBaseId = v.DividendsUser.UserBaseId |
104 | item.DividendsUser.UserType = v.DividendsUser.UserType | 104 | item.DividendsUser.UserType = v.DividendsUser.UserType |
1 | package dto | 1 | package dto |
2 | 2 | ||
3 | type NoticeSettingItem struct { | 3 | type NoticeSettingItem struct { |
4 | - CompanyID int `json:"companyId,string"` | ||
5 | - Content string `json:"content"` | ||
6 | - IsPush int `json:"isPush"` | ||
7 | - Module string `json:"module"` | ||
8 | - ModuleAction string `json:"moduleAction"` | ||
9 | - NoticeSettingID int `json:"noticeSettingId,string"` | ||
10 | - OrgID int `json:"orgId,string"` | 4 | + CompanyID int `json:"companyId,string"` |
5 | + Content string `json:"content"` | ||
6 | + IsPush int `json:"isPush"` | ||
7 | + Module string `json:"module"` | ||
8 | + ModuleAction string `json:"moduleAction"` | ||
9 | + ModuleActionName string `json:"moduleActionName"` | ||
10 | + NoticeSettingID int `json:"noticeSettingId,string"` | ||
11 | + OrgID int `json:"orgId,string"` | ||
12 | + OrgName string `json:"orgName"` | ||
11 | } | 13 | } |
@@ -57,18 +57,28 @@ func (noticeSettingService *NoticeSettingService) NoticeSettingList(noticeSettin | @@ -57,18 +57,28 @@ func (noticeSettingService *NoticeSettingService) NoticeSettingList(noticeSettin | ||
57 | return 0, nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) | 57 | return 0, nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) |
58 | } | 58 | } |
59 | dataList := []dto.NoticeSettingItem{} | 59 | dataList := []dto.NoticeSettingItem{} |
60 | + | ||
60 | for _, v := range result.List { | 61 | for _, v := range result.List { |
62 | + | ||
61 | item := dto.NoticeSettingItem{ | 63 | item := dto.NoticeSettingItem{ |
62 | - CompanyID: v.CompanyID, | ||
63 | - Content: v.Content, | ||
64 | - IsPush: v.IsPush, | ||
65 | - Module: v.Module, | ||
66 | - ModuleAction: v.ModuleAction, | ||
67 | - NoticeSettingID: v.NoticeSettingID, | ||
68 | - OrgID: v.OrgID, | 64 | + CompanyID: v.CompanyID, |
65 | + Content: v.Content, | ||
66 | + IsPush: v.IsPush, | ||
67 | + Module: v.Module, | ||
68 | + ModuleAction: v.ModuleAction, | ||
69 | + NoticeSettingID: v.NoticeSettingID, | ||
70 | + OrgID: v.OrgID, | ||
71 | + ModuleActionName: v.ModuleActionName, | ||
72 | + } | ||
73 | + orgData, _ := creationUserGateway.OrgGet(allied_creation_user.ReqOrgGet{ | ||
74 | + OrgId: v.OrgID, | ||
75 | + }) | ||
76 | + if orgData != nil { | ||
77 | + item.OrgName = orgData.OrgName | ||
69 | } | 78 | } |
70 | dataList = append(dataList, item) | 79 | dataList = append(dataList, item) |
71 | } | 80 | } |
81 | + | ||
72 | return result.Count, dataList, nil | 82 | return result.Count, dataList, nil |
73 | } | 83 | } |
74 | 84 |
@@ -75,13 +75,15 @@ type ( | @@ -75,13 +75,15 @@ type ( | ||
75 | DataNoticeSettingSearch struct { | 75 | DataNoticeSettingSearch struct { |
76 | Count int64 `json:"count"` | 76 | Count int64 `json:"count"` |
77 | List []struct { | 77 | List []struct { |
78 | - CompanyID int `json:"companyId"` | ||
79 | - Content string `json:"content"` | ||
80 | - IsPush int `json:"isPush"` | ||
81 | - Module string `json:"module"` | ||
82 | - ModuleAction string `json:"moduleAction"` | ||
83 | - NoticeSettingID int `json:"noticeSettingId"` | ||
84 | - OrgID int `json:"orgId"` | 78 | + CompanyID int `json:"companyId"` |
79 | + Content string `json:"content"` | ||
80 | + IsPush int `json:"isPush"` | ||
81 | + Module string `json:"module"` | ||
82 | + ModuleAction string `json:"moduleAction"` | ||
83 | + ModuleName string `json:"moduleName"` | ||
84 | + ModuleActionName string `json:"moduleActionName"` | ||
85 | + NoticeSettingID int `json:"noticeSettingId"` | ||
86 | + OrgID int `json:"orgId"` | ||
85 | } `json:"list"` | 87 | } `json:"list"` |
86 | } | 88 | } |
87 | ) | 89 | ) |
@@ -67,11 +67,17 @@ type ( | @@ -67,11 +67,17 @@ type ( | ||
67 | DividendsStage int `json:"DividendsStage"` // 分红阶段 | 67 | DividendsStage int `json:"DividendsStage"` // 分红阶段 |
68 | IsCanceled bool `json:"isCanceled"` // 取消状态 | 68 | IsCanceled bool `json:"isCanceled"` // 取消状态 |
69 | DividendsUser struct { | 69 | DividendsUser struct { |
70 | - UserId int `json:"userId,string,"` // 用户ID, | ||
71 | - UserBaseId int `json:"userBaseId,string,"` // 用户基本id | ||
72 | - UserType int `json:"userType"` // 用户类型 | ||
73 | - UserName string `json:"userName"` // 用户姓名 | ||
74 | - UserPhone string `json:"userPhone"` // 用户手机号 | 70 | + UserId int `json:"userId,string,"` // 用户ID, |
71 | + UserBaseId int `json:"userBaseId,string,"` // 用户基本id | ||
72 | + UserType int `json:"userType"` // 用户类型 | ||
73 | + UserInfo struct { | ||
74 | + UserAvatar string `json:"userAvatar"` // 用户头像 | ||
75 | + UserEmail string `json:"userEmail"` // 用户邮箱 | ||
76 | + UserName string `json:"userName"` // 共创人员姓名 | ||
77 | + UserPhone string `json:"userPhone"` // 用户手机号 | ||
78 | + UserAccount string `json:"userAccount"` // 用户账号, | ||
79 | + UserCode string `json:"userCode"` // 用户编码 | ||
80 | + } `json:"userInfo,omitempty"` | ||
75 | } `json:"dividendsUser"` // 分红用户 | 81 | } `json:"dividendsUser"` // 分红用户 |
76 | Org struct { | 82 | Org struct { |
77 | OrgId int `json:"orgId,string,"` // 组织机构ID | 83 | OrgId int `json:"orgId,string,"` // 组织机构ID |
-
请 注册 或 登录 后发表评论