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
0a0cf62e
authored
Feb 07, 2023
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调试
parent
456f5287
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
special/activity_statistics/main.go
special/activity_statistics/main.go
View file @
0a0cf62e
...
...
@@ -95,9 +95,6 @@ func main() {
specialDb
.
Close
()
mongoConn
.
Close
()
}()
fmt
.
Println
(
"开始"
)
//首先去找最后的更新时间,一般来说找统计表最后一条记录的时间就对了
updateTime
,
_
:=
specialDb
.
Reset
()
.
Table
(
"lie_activity_statistics"
)
.
OrderBy
(
"id desc"
)
.
Value
(
"update_time"
)
if
updateTime
==
nil
{
...
...
@@ -215,6 +212,7 @@ func main() {
}
}
fmt
.
Println
(
"促销活动开始"
)
//价格促销活动统计***********************************************************************************************
var
priceActivityList
[]
model
.
PriceActivity
err
=
specialDb
.
Reset
()
.
Table
(
&
priceActivityList
)
.
Fields
(
"id,start_time,end_time"
)
.
...
...
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