Merge branch 'dev' of http://gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway into dev
正在显示
4 个修改的文件
包含
26 行增加
和
1 行删除
| @@ -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) |
| @@ -276,6 +276,8 @@ type ( | @@ -276,6 +276,8 @@ type ( | ||
| 276 | DepartmentName string `json:"departmentName"` // 发起部门名称 | 276 | DepartmentName string `json:"departmentName"` // 发起部门名称 |
| 277 | CooperationModeName string `json:"cooperationModeName"` // 共创模式名称 | 277 | CooperationModeName string `json:"cooperationModeName"` // 共创模式名称 |
| 278 | OrgName string `json:"orgName"` // 组织机构名称 | 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 | } |
-
请 注册 或 登录 后发表评论