Browse Source

Merge pull request '用户年度报告数据Bug修改。' (#3373) from zouap_static into V20221214

Reviewed-on: https://openi.pcl.ac.cn/OpenI/aiforge/pulls/3373
Reviewed-by: ychao_1983 <ychao_1983@sina.com>
pull/3396/head
ychao_1983 2 years ago
parent
commit
0b1d3d646a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      models/user_business_analysis.go

+ 3
- 1
models/user_business_analysis.go View File

@@ -785,8 +785,9 @@ func isUserYearData(tableName string) bool {
if currentTimeNow.Year() >= 2023 {
return false
}
return true
}
return true
return false
}

func getBonusMap() map[string]map[string]int {
@@ -811,6 +812,7 @@ func getBonusMap() map[string]map[string]int {
record, ok := bonusMap[userName]
if !ok {
record = make(map[string]int)
bonusMap[userName] = record
}
record["times"] = getMapKeyStringValue("times", record) + getIntValue(aLine[3])
record["total_bonus"] = getMapKeyStringValue("total_bonus", record) + getIntValue(aLine[4])


Loading…
Cancel
Save