Merge branch 'dev' of http://gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway into dev
正在显示
5 个修改的文件
包含
23 行增加
和
3 行删除
| @@ -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 |
| @@ -6,6 +6,8 @@ type NoticeSettingItem struct { | @@ -6,6 +6,8 @@ type NoticeSettingItem struct { | ||
| 6 | IsPush int `json:"isPush"` | 6 | IsPush int `json:"isPush"` |
| 7 | Module string `json:"module"` | 7 | Module string `json:"module"` |
| 8 | ModuleAction string `json:"moduleAction"` | 8 | ModuleAction string `json:"moduleAction"` |
| 9 | + ModuleActionName string `json:"moduleActionName"` | ||
| 9 | NoticeSettingID int `json:"noticeSettingId,string"` | 10 | NoticeSettingID int `json:"noticeSettingId,string"` |
| 10 | OrgID int `json:"orgId,string"` | 11 | OrgID int `json:"orgId,string"` |
| 12 | + OrgName string `json:"orgName"` | ||
| 11 | } | 13 | } |
| @@ -57,7 +57,9 @@ func (noticeSettingService *NoticeSettingService) NoticeSettingList(noticeSettin | @@ -57,7 +57,9 @@ 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, | 64 | CompanyID: v.CompanyID, |
| 63 | Content: v.Content, | 65 | Content: v.Content, |
| @@ -66,9 +68,17 @@ func (noticeSettingService *NoticeSettingService) NoticeSettingList(noticeSettin | @@ -66,9 +68,17 @@ func (noticeSettingService *NoticeSettingService) NoticeSettingList(noticeSettin | ||
| 66 | ModuleAction: v.ModuleAction, | 68 | ModuleAction: v.ModuleAction, |
| 67 | NoticeSettingID: v.NoticeSettingID, | 69 | NoticeSettingID: v.NoticeSettingID, |
| 68 | OrgID: v.OrgID, | 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 |
| @@ -80,6 +80,8 @@ type ( | @@ -80,6 +80,8 @@ type ( | ||
| 80 | IsPush int `json:"isPush"` | 80 | IsPush int `json:"isPush"` |
| 81 | Module string `json:"module"` | 81 | Module string `json:"module"` |
| 82 | ModuleAction string `json:"moduleAction"` | 82 | ModuleAction string `json:"moduleAction"` |
| 83 | + ModuleName string `json:"moduleName"` | ||
| 84 | + ModuleActionName string `json:"moduleActionName"` | ||
| 83 | NoticeSettingID int `json:"noticeSettingId"` | 85 | NoticeSettingID int `json:"noticeSettingId"` |
| 84 | OrgID int `json:"orgId"` | 86 | OrgID int `json:"orgId"` |
| 85 | } `json:"list"` | 87 | } `json:"list"` |
| @@ -70,8 +70,14 @@ type ( | @@ -70,8 +70,14 @@ type ( | ||
| 70 | UserId int `json:"userId,string,"` // 用户ID, | 70 | UserId int `json:"userId,string,"` // 用户ID, |
| 71 | UserBaseId int `json:"userBaseId,string,"` // 用户基本id | 71 | UserBaseId int `json:"userBaseId,string,"` // 用户基本id |
| 72 | UserType int `json:"userType"` // 用户类型 | 72 | UserType int `json:"userType"` // 用户类型 |
| 73 | - UserName string `json:"userName"` // 用户姓名 | 73 | + UserInfo struct { |
| 74 | + UserAvatar string `json:"userAvatar"` // 用户头像 | ||
| 75 | + UserEmail string `json:"userEmail"` // 用户邮箱 | ||
| 76 | + UserName string `json:"userName"` // 共创人员姓名 | ||
| 74 | UserPhone string `json:"userPhone"` // 用户手机号 | 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 |
-
请 注册 或 登录 后发表评论