作者 陈志颖

fix:年榜数据

@@ -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 - 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 - if uidName[uidWealth] != nil {  
502 - currentEmployeeWealth.EmployeeName = uidName[uidWealth].(string) 499 + if contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeWealth"] != nil {
  500 + currentEmployeeWealth := contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeWealth"].(struct{Uid int64;EmployeeName string;EmployeeSuMoney float64;Ranking int})
  501 + uidWealth := contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeWealth"].(struct{Uid int64;EmployeeName string;EmployeeSuMoney float64;Ranking int}).Uid
  502 + if uidName[uidWealth] != nil {
  503 + currentEmployeeWealth.EmployeeName = uidName[uidWealth].(string)
  504 + }
  505 + contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeWealth"] = currentEmployeeWealth
503 } 506 }
504 - contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeWealth"] = currentEmployeeWealth  
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 // 个人贡献值
515 - 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  
517 - if uidName[uidContributions] != nil {  
518 - currentEmployeeContributions.EmployeeName = uidName[uidContributions].(string) 517 + if contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeContributions"] != nil {
  518 + currentEmployeeContributions := contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeContributions"].(struct{Uid int64;EmployeeName string;EmployeesContributions float64;Ranking int})
  519 + uidContributions := contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeContributions"].(struct{Uid int64;EmployeeName string;EmployeesContributions float64;Ranking int}).Uid
  520 + if uidName[uidContributions] != nil {
  521 + currentEmployeeContributions.EmployeeName = uidName[uidContributions].(string)
  522 + }
  523 + contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeContributions"] = currentEmployeeContributions
519 } 524 }
520 - contributionsWealthRankingStatistics.(map[string]interface{})["currentEmployeeContributions"] = currentEmployeeContributions  
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())