正在显示
4 个修改的文件
包含
37 行增加
和
12 行删除
@@ -51,6 +51,16 @@ type DividendsEstimateMoneyItem struct { | @@ -51,6 +51,16 @@ type DividendsEstimateMoneyItem struct { | ||
51 | DepartmentName string `json:"departmentName"` | 51 | DepartmentName string `json:"departmentName"` |
52 | } `json:"department"` //发起部门 | 52 | } `json:"department"` //发起部门 |
53 | CooperationContractSponsorName string `json:"cooperationContractSponsorName"` | 53 | CooperationContractSponsorName string `json:"cooperationContractSponsorName"` |
54 | + StageAndUndertaker struct { | ||
55 | + Stage int `json:"stage"` // 分红阶段 | ||
56 | + Undertakers []struct { | ||
57 | + UndertakerId int `json:"undertakerId,string"` // 承接人id | ||
58 | + UserInfo struct { | ||
59 | + UserName string `json:"userName"` // 共创人员姓名 | ||
60 | + UserPhone string `json:"userPhone"` // 用户手机号 | ||
61 | + } `json:"userInfo"` | ||
62 | + } `json:"undertakers"` // 共创承接人 | ||
63 | + } | ||
54 | } | 64 | } |
55 | 65 | ||
56 | func ToDividendsEstimateMoneyItem(param *allied_creation_cooperation.DataDividendsEstimateSearchMoney) []DividendsEstimateMoneyItem { | 66 | func ToDividendsEstimateMoneyItem(param *allied_creation_cooperation.DataDividendsEstimateSearchMoney) []DividendsEstimateMoneyItem { |
@@ -62,6 +72,7 @@ func ToDividendsEstimateMoneyItem(param *allied_creation_cooperation.DataDividen | @@ -62,6 +72,7 @@ func ToDividendsEstimateMoneyItem(param *allied_creation_cooperation.DataDividen | ||
62 | CooperationContractNumber: v.CooperationContractNumber, | 72 | CooperationContractNumber: v.CooperationContractNumber, |
63 | CreatedAt: v.CreatedAt.UnixNano() / 1e6, | 73 | CreatedAt: v.CreatedAt.UnixNano() / 1e6, |
64 | CooperationModeName: v.CooperationModeName, | 74 | CooperationModeName: v.CooperationModeName, |
75 | + StageAndUndertaker: v.StageAndUndertaker, | ||
65 | } | 76 | } |
66 | item.Department.DepartmentId = v.Department.DepartmentId | 77 | item.Department.DepartmentId = v.Department.DepartmentId |
67 | item.Department.DepartmentName = v.Department.DepartmentName | 78 | item.Department.DepartmentName = v.Department.DepartmentName |
@@ -186,6 +186,8 @@ func (dividendsEmmateService *DividendsEstimateService) MoneyIncentivesSelector( | @@ -186,6 +186,8 @@ func (dividendsEmmateService *DividendsEstimateService) MoneyIncentivesSelector( | ||
186 | contractData := resultContract.Grid.List[0] | 186 | contractData := resultContract.Grid.List[0] |
187 | resultDividendsEstimate, err := creationCooperationGateway.DividendsEstimatesSearch(allied_creation_cooperation.ReqDividendsEstimateSearch{ | 187 | resultDividendsEstimate, err := creationCooperationGateway.DividendsEstimatesSearch(allied_creation_cooperation.ReqDividendsEstimateSearch{ |
188 | CooperationContractNumber: queryParam.CooperationContractNumber, | 188 | CooperationContractNumber: queryParam.CooperationContractNumber, |
189 | + DividendsType: 3, | ||
190 | + CompanyId: queryParam.Operator.CompanyId, | ||
189 | }) | 191 | }) |
190 | if err != nil { | 192 | if err != nil { |
191 | return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | 193 | return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) |
@@ -209,7 +211,7 @@ func (dividendsEmmateService *DividendsEstimateService) MoneyIncentivesSelector( | @@ -209,7 +211,7 @@ func (dividendsEmmateService *DividendsEstimateService) MoneyIncentivesSelector( | ||
209 | } | 211 | } |
210 | temp := dto.ContractUndertaker{ | 212 | temp := dto.ContractUndertaker{ |
211 | UserId: v.UserId, | 213 | UserId: v.UserId, |
212 | - UsersName: v.UserName, | 214 | + UsersName: v.UserInfo.UserName, |
213 | ContractIncentivesRules: ruleStage, | 215 | ContractIncentivesRules: ruleStage, |
214 | } | 216 | } |
215 | contractUndertaker = append(contractUndertaker, temp) | 217 | contractUndertaker = append(contractUndertaker, temp) |
@@ -265,17 +265,19 @@ type ( | @@ -265,17 +265,19 @@ type ( | ||
265 | Grid struct { | 265 | Grid struct { |
266 | Total int | 266 | Total int |
267 | List []struct { | 267 | List []struct { |
268 | - UndertakerId int64 `json:"undertakerId,string"` // 承接人ID | ||
269 | - UndertakerCode string `json:"undertakerCode"` // 承接人编号 | ||
270 | - UndertakerName string `json:"undertakerName"` // 承接人姓名 | ||
271 | - UndertakerPhone string `json:"undertakerPhone"` // 承接人电话 | ||
272 | - CooperationContractNumber string `json:"cooperationContractNumber"` // 项目合约编号 | ||
273 | - CooperationContractName string `json:"cooperationContractName"` // 项目合约名称 | ||
274 | - Attachment []domain.Attachment `json:"attachment"` // 合同附件 | ||
275 | - SponsorName string `json:"sponsorName"` // 发起人姓名 | ||
276 | - DepartmentName string `json:"departmentName"` // 发起部门名称 | ||
277 | - CooperationModeName string `json:"cooperationModeName"` // 共创模式名称 | ||
278 | - OrgName string `json:"orgName"` // 组织机构名称 | 268 | + UndertakerId int64 `json:"undertakerId,string"` // 承接人ID |
269 | + UndertakerCode string `json:"undertakerCode"` // 承接人编号 | ||
270 | + UndertakerName string `json:"undertakerName"` // 承接人姓名 | ||
271 | + UndertakerPhone string `json:"undertakerPhone"` // 承接人电话 | ||
272 | + CooperationContractNumber string `json:"cooperationContractNumber"` // 项目合约编号 | ||
273 | + CooperationContractName string `json:"cooperationContractName"` // 项目合约名称 | ||
274 | + Attachment []domain.Attachment `json:"attachment"` // 合同附件 | ||
275 | + SponsorName string `json:"sponsorName"` // 发起人姓名 | ||
276 | + DepartmentName string `json:"departmentName"` // 发起部门名称 | ||
277 | + CooperationModeName string `json:"cooperationModeName"` // 共创模式名称 | ||
278 | + OrgName string `json:"orgName"` // 组织机构名称 | ||
279 | + CooperationContractStatus int32 `json:"cooperationContractStatus"` // 项目合约状态 | ||
280 | + CooperationContractDescription string `json:"cooperationContractDescription"` // 共创描述 | ||
279 | } | 281 | } |
280 | } | 282 | } |
281 | } | 283 | } |
@@ -121,6 +121,16 @@ type ( | @@ -121,6 +121,16 @@ type ( | ||
121 | } `json:"department"` //发起部门 | 121 | } `json:"department"` //发起部门 |
122 | // 共创合约发起人 | 122 | // 共创合约发起人 |
123 | CooperationContractSponsorName string `json:"cooperationContractSponsor"` | 123 | CooperationContractSponsorName string `json:"cooperationContractSponsor"` |
124 | + StageAndUndertaker struct { | ||
125 | + Stage int `json:"stage"` // 分红阶段 | ||
126 | + Undertakers []struct { | ||
127 | + UndertakerId int `json:"undertakerId,string"` // 承接人id | ||
128 | + UserInfo struct { | ||
129 | + UserName string `json:"userName"` // 共创人员姓名 | ||
130 | + UserPhone string `json:"userPhone"` // 用户手机号 | ||
131 | + } `json:"userInfo"` | ||
132 | + } `json:"undertakers"` // 共创承接人 | ||
133 | + } | ||
124 | } `json:"list"` | 134 | } `json:"list"` |
125 | } `json:"grid"` | 135 | } `json:"grid"` |
126 | } | 136 | } |
-
请 注册 或 登录 后发表评论