Commit 20db06bd by mushishixian

mq配置地址

parent 3b7ea87b
......@@ -186,6 +186,6 @@ func main() {
"store_customer",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}, t, 1)
}
......@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/ichunt2019/go-rabbitmq/utils/rabbitmq"
"scm_server/configs"
)
func main() {
......@@ -24,8 +25,8 @@ func main() {
"CFNAME": "深圳市肯特尔科技有限公司",
},
}
data,err := json.Marshal(message)
if err!=nil {
data, err := json.Marshal(message)
if err != nil {
fmt.Println(err)
}
body := string(data)
......@@ -34,7 +35,7 @@ func main() {
"store_customer",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}
rabbitmq.Send(queueExchange, body)
......
......@@ -190,6 +190,6 @@ func main() {
"store_goods",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}, t, 1)
}
......@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/ichunt2019/go-rabbitmq/utils/rabbitmq"
"scm_server/configs"
)
func main() {
......@@ -27,7 +28,7 @@ func main() {
"store_goods",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}
rabbitmq.Send(queueExchange, body)
......
......@@ -248,6 +248,6 @@ func main() {
"store_in",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}, t, 1)
}
......@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/ichunt2019/go-rabbitmq/utils/rabbitmq"
"scm_server/configs"
)
func main() {
......@@ -18,8 +19,8 @@ func main() {
"CFIsInsp": false,
"FPrincipalNo": "WT00018",
//"FPrincipalNo": "FIZXuVrXRCms51pqby5EVagYZf0=",
"FSupplierNo": "M0000045",
"FBizType": "执行采购",
"FSupplierNo": "M0000045",
"FBizType": "执行采购",
"FEntrys": []map[string]interface{}{
{
"FQty": 9,
......@@ -48,7 +49,7 @@ func main() {
"store_in",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}
rabbitmq.Send(queueExchange, body)
......
......@@ -228,6 +228,6 @@ func main() {
"store_out",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}, t, 1)
}
......@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/ichunt2019/go-rabbitmq/utils/rabbitmq"
"scm_server/configs"
)
func main() {
......@@ -46,7 +47,7 @@ func main() {
"store_out",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}
rabbitmq.Send(queueExchange, body)
......
......@@ -217,6 +217,6 @@ func main() {
"store_sync_status",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}, t, 1)
}
......@@ -3,6 +3,7 @@ package product
import (
"encoding/json"
"github.com/ichunt2019/go-rabbitmq/utils/rabbitmq"
"scm_server/configs"
)
func SyncErpStatus(syncName string, ErpId string) (err error) {
......@@ -22,7 +23,7 @@ func SyncErpStatus(syncName string, ErpId string) (err error) {
"store_sync_status",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}
rabbitmq.Send(queueExchange, body)
......
......@@ -3,6 +3,7 @@ package main
import (
"encoding/json"
"github.com/ichunt2019/go-rabbitmq/utils/rabbitmq"
"scm_server/configs"
)
func main(){
......@@ -23,7 +24,7 @@ func main(){
"store_sync_status",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}
rabbitmq.Send(queueExchange, body)
......
......@@ -186,6 +186,6 @@ func main() {
"store_supplier",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}, t, 1)
}
......@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/ichunt2019/go-rabbitmq/utils/rabbitmq"
"scm_server/configs"
)
func main() {
......@@ -26,7 +27,7 @@ func main() {
"store_supplier",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}
rabbitmq.Send(queueExchange, body)
......
......@@ -18,7 +18,7 @@ func init() {
"store_customer",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}
}
func Import() {
......
......@@ -18,7 +18,7 @@ func init() {
"store_goods",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}
}
......
......@@ -18,7 +18,7 @@ func init() {
"store_supplier",
"store",
"direct",
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/",
configs.RABBITMQDSN,
}
}
......
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