Commit 714e7d98 authored by hujiebin's avatar hujiebin

feat:充值数据

parent 685f3f58
......@@ -56,7 +56,10 @@ func main() {
data[uid] = &UserChargeData{UserId: uid, Code: uM[uid].Code, Country: uM[uid].Country, ChargeMoneySum: m1 + m2, ChargeDiamondSum: d1 + d2}
}
var err error
var n = 0
for d, u := range data {
n++
println(n)
data[d].EarnDiamondSum, err = GetDiamondSumOperateTypeAll(u.UserId, 1)
if err != nil {
panic(err)
......@@ -93,7 +96,7 @@ func main() {
}
data[d].SlotsDiamondDiff = data[d].SlotsDiamondEarnSum - data[d].SlotsDiamondCostSum
}
excelFileName := fmt.Sprintf("./充值数据%s.xlsx", time.Now().Format("20060102"))
excelFileName := fmt.Sprintf("./充值数据2%s.xlsx", time.Now().Format("20060102"))
xlFile := xlsx.NewFile()
sheet, err := xlFile.AddSheet("charge")
row := sheet.AddRow()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment