Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
scm_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
b84f05fc
authored
May 14, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化
parent
68e95dce
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
cmd/queue/sync_audit_status/main.go
cmd/queue/sync_goods/product.go → cmd/queue/sync_goods/product/product.go
conf/config.ini
cmd/queue/sync_audit_status/main.go
View file @
b84f05fc
...
@@ -34,7 +34,7 @@ type StoreData struct {
...
@@ -34,7 +34,7 @@ type StoreData struct {
type
StoreGoods
struct
{
type
StoreGoods
struct
{
ErpEntrySn
string
`json:"erp_entry_sn"`
ErpEntrySn
string
`json:"erp_entry_sn"`
Number
string
`json:"number"`
Number
string
`json:"number"`
CountryCode
string
`json:"country
_code
"`
CountryCode
string
`json:"country"`
}
}
func
(
t
*
RecvPro
)
Consumer
(
dataByte
[]
byte
)
(
err
error
)
{
func
(
t
*
RecvPro
)
Consumer
(
dataByte
[]
byte
)
(
err
error
)
{
...
...
cmd/queue/sync_goods/product.go
→
cmd/queue/sync_goods/product
/product
.go
View file @
b84f05fc
package
sync_goods
package
main
import
(
import
(
"encoding/json"
"encoding/json"
...
@@ -12,10 +12,10 @@ func main() {
...
@@ -12,10 +12,10 @@ func main() {
message
=
map
[
string
]
interface
{}{
message
=
map
[
string
]
interface
{}{
"type"
:
"delete"
,
"type"
:
"delete"
,
"data"
:
map
[
string
]
string
{
"data"
:
map
[
string
]
string
{
"FID"
:
"
BUqVwVoBTRm/BY9kIKL7fE
QJ5/A="
,
"FID"
:
"
imqWd01vR7qdD/+CY8FKHk
QJ5/A="
,
"FGoods"
:
"
光电耦合器
"
,
"FGoods"
:
"
test123145
"
,
"FBrand"
:
"
VISHAY
"
,
"FBrand"
:
"
TEST123145
"
,
"FModel"
:
"
LH1512BB
"
,
"FModel"
:
"
test123145
"
,
},
},
}
}
data
,
err
:=
json
.
Marshal
(
message
)
data
,
err
:=
json
.
Marshal
(
message
)
...
...
conf/config.ini
View file @
b84f05fc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
username
=
root
username
=
root
password
=
root
password
=
root
host
=
192.168.2.250
host
=
192.168.2.250
database
=
lie_scm_sync
database
=
lie_scm_
wms_
sync
[rabbitmq]
[rabbitmq]
url
=
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/"
url
=
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/"
...
...
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