正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -496,12 +496,14 @@ func (statisticsService *StatisticsService) ContributionsWealthRanking(contribut | @@ -496,12 +496,14 @@ func (statisticsService *StatisticsService) ContributionsWealthRanking(contribut | ||
| 496 | } | 496 | } |
| 497 | 497 | ||
| 498 | // 个人财富值 | 498 | // 个人财富值 |
| 499 | + if contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeWealth"] != nil { | ||
| 499 | currentEmployeeWealth := contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeWealth"].(struct{Uid int64;EmployeeName string;EmployeeSuMoney float64;Ranking int}) | 500 | currentEmployeeWealth := contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeWealth"].(struct{Uid int64;EmployeeName string;EmployeeSuMoney float64;Ranking int}) |
| 500 | uidWealth := contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeWealth"].(struct{Uid int64;EmployeeName string;EmployeeSuMoney float64;Ranking int}).Uid | 501 | uidWealth := contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeWealth"].(struct{Uid int64;EmployeeName string;EmployeeSuMoney float64;Ranking int}).Uid |
| 501 | if uidName[uidWealth] != nil { | 502 | if uidName[uidWealth] != nil { |
| 502 | currentEmployeeWealth.EmployeeName = uidName[uidWealth].(string) | 503 | currentEmployeeWealth.EmployeeName = uidName[uidWealth].(string) |
| 503 | } | 504 | } |
| 504 | contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeWealth"] = currentEmployeeWealth | 505 | contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeWealth"] = currentEmployeeWealth |
| 506 | + } | ||
| 505 | 507 | ||
| 506 | // 贡献值排行版 | 508 | // 贡献值排行版 |
| 507 | for i, _ := range contributionsWealthRankingStatistics.(map[string]interface{})["employeesContributions"].([]struct { Uid int64; EmployeeName string; EmployeesContributions float64; Ranking int }) { | 509 | for i, _ := range contributionsWealthRankingStatistics.(map[string]interface{})["employeesContributions"].([]struct { Uid int64; EmployeeName string; EmployeesContributions float64; Ranking int }) { |
| @@ -512,12 +514,14 @@ func (statisticsService *StatisticsService) ContributionsWealthRanking(contribut | @@ -512,12 +514,14 @@ func (statisticsService *StatisticsService) ContributionsWealthRanking(contribut | ||
| 512 | } | 514 | } |
| 513 | 515 | ||
| 514 | // 个人贡献值 | 516 | // 个人贡献值 |
| 517 | + if contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeContributions"] != nil { | ||
| 515 | currentEmployeeContributions := contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeContributions"].(struct{Uid int64;EmployeeName string;EmployeesContributions float64;Ranking int}) | 518 | currentEmployeeContributions := contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeContributions"].(struct{Uid int64;EmployeeName string;EmployeesContributions float64;Ranking int}) |
| 516 | uidContributions := contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeContributions"].(struct{Uid int64;EmployeeName string;EmployeesContributions float64;Ranking int}).Uid | 519 | uidContributions := contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeContributions"].(struct{Uid int64;EmployeeName string;EmployeesContributions float64;Ranking int}).Uid |
| 517 | if uidName[uidContributions] != nil { | 520 | if uidName[uidContributions] != nil { |
| 518 | currentEmployeeContributions.EmployeeName = uidName[uidContributions].(string) | 521 | currentEmployeeContributions.EmployeeName = uidName[uidContributions].(string) |
| 519 | } | 522 | } |
| 520 | contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeContributions"] = currentEmployeeContributions | 523 | contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeContributions"] = currentEmployeeContributions |
| 524 | + } | ||
| 521 | 525 | ||
| 522 | if err := transactionContext.CommitTransaction(); err != nil { | 526 | if err := transactionContext.CommitTransaction(); err != nil { |
| 523 | return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | 527 | return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) |
-
请 注册 或 登录 后发表评论