Commit b84f05fc by mushishixian

优化

parent 68e95dce
...@@ -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) {
......
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/BY9kIKL7fEQJ5/A=", "FID": "imqWd01vR7qdD/+CY8FKHkQJ5/A=",
"FGoods": "光电耦合器", "FGoods": "test123145",
"FBrand": "VISHAY", "FBrand": "TEST123145",
"FModel": "LH1512BB", "FModel": "test123145",
}, },
} }
data, err := json.Marshal(message) data, err := json.Marshal(message)
......
...@@ -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/"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment