Commit 9d94b31c authored by hujiebin's avatar hujiebin

2

parent cf2e1015
......@@ -68,7 +68,7 @@ func getArea(country string) string {
func getConsume(groupId string) string {
var result int64
if err := mysql.ProdReadOnlyDB.Table("room_day_consume").Where("group_id = ?", groupId).Select("SUM(diamond)").Scan(&result).Error; err != nil {
panic(err)
//panic(err)
}
return cast.ToString(result)
}
......@@ -98,6 +98,7 @@ func main() {
d.Country = country
d.Area = area
d.Consume = consume
data = append(data, d)
}
excelFileName := fmt.Sprintf("./房间500热度.xlsx")
xlFile := xlsx.NewFile()
......
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