Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang-queue-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
823df656
authored
Oct 11, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复bug
parent
526a92a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
2 deletions
special/activity_statistics/logs/2021-10-11.log
special/activity_statistics/logs/2021-10-11.log.wf
special/activity_statistics/main.go
special/activity_statistics/logs/2021-10-11.log
0 → 100644
View file @
823df656
File mode changed
special/activity_statistics/logs/2021-10-11.log.wf
0 → 100644
View file @
823df656
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
special/activity_statistics/main.go
View file @
823df656
...
...
@@ -225,7 +225,7 @@ func main() {
fmt
.
Println
(
err
.
Error
())
}
for
_
,
activity
:=
range
priceActivityList
{
orderNum
,
_
:=
d
b
.
Reset
()
.
Table
(
"lie_order_activity_count"
)
.
Where
(
"activity_id"
,
activity
.
Id
)
.
Count
(
"order_id"
)
orderNum
,
_
:=
orderD
b
.
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
:=
d
b
.
Reset
()
.
items
,
err
:=
orderD
b
.
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
)
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment