Browse Source

Merge pull request '提交代码,增加数据打印' (#3516) from zouap into V20221228

Reviewed-on: https://openi.pcl.ac.cn/OpenI/aiforge/pulls/3516
Reviewed-by: ychao_1983 <ychao_1983@sina.com>
tags/v1.22.12.2^2
ychao_1983 2 years ago
parent
commit
f7e0a8088c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      models/user_business_analysis.go

+ 3
- 0
models/user_business_analysis.go View File

@@ -897,10 +897,13 @@ func getBonusWeekDataMap() map[int64][]int {
if len(aLine) < 4 { if len(aLine) < 4 {
continue continue
} }
log.Info("aLine=" + lines[j])

userId := getInt64Value(aLine[0]) userId := getInt64Value(aLine[0])
order := getIntValue(aLine[2]) order := getIntValue(aLine[2])
money := getIntValue(aLine[3]) money := getIntValue(aLine[3])
week, num := getWeekAndNum(filenames[i]) week, num := getWeekAndNum(filenames[i])
log.Info("userId=" + fmt.Sprint(userId) + " order=" + fmt.Sprint(order) + " money=" + fmt.Sprint(money) + " week=" + fmt.Sprint(week) + " num=" + fmt.Sprint(num))
//email := lines[2] //email := lines[2]
record, ok := bonusMap[userId] record, ok := bonusMap[userId]
if !ok { if !ok {


Loading…
Cancel
Save