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
0cf64032
authored
Feb 07, 2023
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改数据库链接
parent
da8c97ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
special/activity_statistics/main.go
special/activity_statistics/main.go
View file @
0cf64032
...
...
@@ -54,7 +54,7 @@ func initLog() {
//初始化数据库
func
initDB
()
{
dsn
:=
util
.
Configs
.
Liexin_databases
.
Dns
orderDsn
:=
util
.
Configs
.
Liexin_
order_
databases
.
Dns
orderDsn
:=
util
.
Configs
.
Liexin_databases
.
Dns
specialDsn
:=
util
.
Configs
.
Special_databases
.
Dns
//engine.GetLogger().
engine
,
err
=
gorose
.
Open
(
&
gorose
.
Config
{
Driver
:
"mysql"
,
Dsn
:
dsn
})
...
...
@@ -216,7 +216,7 @@ func main() {
//价格促销活动统计***********************************************************************************************
var
priceActivityList
[]
model
.
PriceActivity
err
=
specialDb
.
Reset
()
.
Table
(
&
priceActivityList
)
.
Fields
(
"id,start_time,end_time"
)
.
Where
(
"end_time"
,
">"
,
updateTime
)
.
Where
(
"id"
,
"="
,
30
)
.
Select
()
Where
(
"end_time"
,
">"
,
updateTime
)
.
Select
()
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