Commit 823df656 by mushishixian

修复bug

parent 526a92a4
2021-10-11 15:31:43.514 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:43.624 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:43.739 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:43.848 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:43.957 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:44.073 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:44.182 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:44.29 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:44.398 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:44.482 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:44.574 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:44.674 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:44.774 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:44.875 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:44.982 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:31:45.092 ERROR (main.go:main.main:279) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:06.788 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:06.896 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:07.005 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:07.122 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:07.239 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:07.338 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:07.439 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:07.54 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:07.647 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:07.755 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:07.906 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:08.006 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:08.116 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:08.223 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:08.331 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:34:08.432 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:35:34.113 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:35:34.229 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:35:34.313 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:35:34.396 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:35:34.481 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:35:34.566 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:35:34.656 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:35:34.74 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:35:34.823 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:35:34.907 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:35:35.008 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
2021-10-11 15:35:35.107 ERROR (main.go:main.main:280) Error 1146: Table 'liexin.lie_order_activity_count' doesn't exist
......@@ -225,7 +225,7 @@ func main() {
fmt.Println(err.Error())
}
for _, activity := range priceActivityList {
orderNum, _ := db.Reset().Table("lie_order_activity_count").Where("activity_id", activity.Id).Count("order_id")
orderNum, _ := orderDb.Reset().Table("lie_order_activity_count").Where("activity_id", activity.Id).Count("order_id")
//先找出这个活动对应的所有用户(根据user_id)去重
orderActivityUserIds, _ := orderDb.Reset().Table("lie_order_activity_count").
Where("lie_order_activity_count.activity_id", activity.Id).
......@@ -270,7 +270,7 @@ func main() {
fmt.Println(err.Error())
}
}
items, err := db.Reset().
items, err := orderDb.Reset().
Fields("activity_id,user_id,order_id,sum(lie_order_activity_count.amount) as total_amount").
Table("lie_order_activity_count").
Where("lie_order_activity_count.activity_id", activity.Id).
......
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 sign in to comment