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
684bfd50
authored
Jan 29, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
ddfbf150
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
special/activity_statistics/main.go
special/activity_statistics/main.go
View file @
684bfd50
...
...
@@ -98,7 +98,6 @@ func main() {
logger
.
Error
(
err
.
Error
())
fmt
.
Println
(
err
.
Error
())
}
fmt
.
Println
(
len
(
giftActivityList
))
//统计满赠活动******************
for
_
,
activity
:=
range
giftActivityList
{
orderNum
,
_
:=
db
.
Reset
()
.
Table
(
"lie_order_gift"
)
.
Where
(
"activity_id"
,
activity
.
Id
)
.
Where
(
"status"
,
"!="
,
-
1
)
.
Count
()
...
...
@@ -115,7 +114,8 @@ func main() {
data
[
"activity_id"
]
=
activity
.
Id
data
[
"type"
]
=
2
if
count
>
0
{
_
,
err
=
specialDb
.
Reset
()
.
Table
(
"lie_activity_statistics"
)
.
Where
(
"activity_id"
,
activity
.
Id
)
.
Data
(
data
)
.
Update
()
_
,
err
=
specialDb
.
Reset
()
.
Table
(
"lie_activity_statistics"
)
.
Where
(
"activity_id"
,
activity
.
Id
)
.
Where
(
"type"
,
2
)
.
Data
(
data
)
.
Update
()
fmt
.
Println
(
specialDb
.
LastSql
())
if
err
!=
nil
{
logger
.
Error
(
err
.
Error
())
...
...
@@ -210,7 +210,8 @@ func main() {
data
[
"activity_id"
]
=
activity
.
Id
data
[
"type"
]
=
1
if
count
>
0
{
_
,
err
=
specialDb
.
Reset
()
.
Table
(
"lie_activity_statistics"
)
.
Where
(
"activity_id"
,
activity
.
Id
)
.
Data
(
data
)
.
Update
()
_
,
err
=
specialDb
.
Reset
()
.
Table
(
"lie_activity_statistics"
)
.
Where
(
"activity_id"
,
activity
.
Id
)
.
Where
(
"type"
,
1
)
.
Data
(
data
)
.
Update
()
if
err
!=
nil
{
logger
.
Error
(
err
.
Error
())
fmt
.
Println
(
err
.
Error
())
...
...
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