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
52dd3bec
authored
Nov 19, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
14a0c6fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
dal/order/orderTrack/order_track.go
go.mod
dal/order/orderTrack/order_track.go
View file @
52dd3bec
...
...
@@ -3,6 +3,7 @@ package orderTrack
import
(
"errors"
"fmt"
"github.com/ichunt2019/logger"
"go-queue-server/dal/db"
"go-queue-server/util"
)
...
...
@@ -62,7 +63,7 @@ func InsertData(trackList OrderTrackList) error{
orderItems
:=
&
OrderItems
{}
err
=
db
.
DB
.
Get
(
orderItems
,
"SELECT order_id,rec_id FROM lie_order_items WHERE erp_rec_id = ?"
,
data
.
ORDERENTRYID
)
if
err
!=
nil
{
fmt
.
Println
(
err
)
logger
.
Error
(
"%s"
,
fmt
.
Sprintf
(
"没有找到该明细的信息 %d"
,
data
.
ORDERENTRYID
)
)
return
errors
.
New
(
fmt
.
Sprintf
(
"没有找到该明细的信息 %d"
,
data
.
ORDERENTRYID
))
}
create_time
=
util
.
ParseTimestrToTimestamp
(
data
.
BIZDATE
,
5
)
...
...
@@ -72,6 +73,7 @@ func InsertData(trackList OrderTrackList) error{
sql
:=
" INSERT INTO lie_order_items_tracking (rec_id,order_id,status,msg,status_cn,create_name,create_time) VALUES(?,?,?,?,?,?,?)"
_
,
err
:=
db
.
DB
.
Exec
(
sql
,
orderItems
.
RecId
,
orderItems
.
OrderId
,
data
.
STATUS
,
data
.
MSG
,
status_cn
,
data
.
CREATOR
,
create_time
)
if
err
!=
nil
{
logger
.
Error
(
"%s"
,
err
)
return
err
}
}
...
...
go.mod
View file @
52dd3bec
...
...
@@ -12,7 +12,7 @@ require (
github.com/ichunt2019/golang-rbmq-sl v0.0.0-20200515075131-59a37ab77d7d
github.com/ichunt2019/logger v1.0.5
github.com/jmoiron/sqlx v1.2.0
github.com/prometheus/common v0.7.0
// indirect
github.com/prometheus/common v0.7.0
github.com/streadway/amqp v0.0.0-20200108173154-1c71cc93ed71
github.com/syyongx/php2go v0.9.4
github.com/tealeg/xlsx v1.0.5
...
...
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