Authored by LUOXC

update

1 -## 调试接口  
2 -  
3 -### 更新订单状态  
4 -hosts 192.168.50.69 api.erp.yohobuy.com  
5 -  
6 -#### 输入  
7 -method=orders.orders.updateStatus  
8 -order_code=*****  
9 -  
10 -#### 输出  
11 -```json  
12 -{  
13 - "code":200,  
14 - "message":"ok",  
15 - "data":null  
16 -}  
17 -```  
18 -code==200表示成功,其它都为失败  
19 -  
20 -## MQ消息数据结构  
21 -  
22 -  
23 -### 取消订单MQ消息  
24 -TOPIC:order.cancel  
25 -```json  
26 -{"orderCode":100000,"status":900}  
27 -```  
28 -  
29 -### 订单状态同步MQ消息  
30 -TOPIC:order.erpstatus  
31 -```json  
32 -{"orderCode":100000,"status":901}  
33 -```  
34 -  
35 -  
36 -### 前台创建换货单  
37 -TOPIC:order.createChangeOrder  
38 -```json  
39 -{  
40 - "id": 1,  
41 - "city": "南京市",  
42 - "area_code": "320115",  
43 - "address": "江宁经济技术开发区苏源大道87号(有货物流中心订单组)",  
44 - "consignee_name": "测试",  
45 - "county": "江宁区",  
46 - "delivery_tpye": 10,  
47 - "email": "",  
48 - "exchange_mode": 10,  
49 - "mobile": "13776693005",  
50 - "order_code": 16062099,  
51 - "province": "江苏省",  
52 - "receipt_time": "2",  
53 - "remark": "用户换货",  
54 - "uid": 8041518,  
55 - "zip_code": "211100",  
56 - "goods": [  
57 - {  
58 - "exchange_reason": "3",  
59 - "goods_type": "1",  
60 - "last_price": "88.00",  
61 - "new_goods_id": 354687,  
62 - "new_product_skc": 279434,  
63 - "new_product_sku": 892152,  
64 - "product_skc": 279434,  
65 - "product_skn": 51152761,  
66 - "product_sku": 892152,  
67 - "remark": ""  
68 - }  
69 - ]  
70 -}  
71 -```  
72 -  
73 -### ERP创建换货单  
74 -TOPIC:erp.createChangeOrder  
75 -```json  
76 -{"id":1,"init_order_code":"111","source_order_code":1111,"new_order_code":1111,"exchange_id":111,"returned_id":111,"exchange_status":10,"returned_status":10}  
77 -```  
78 -  
79 -### 前台更新换货快递信息  
80 -TOPIC:order.updateChangeOrderExpressInfo  
81 -```json  
82 -{"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"}  
83 -```  
84 -  
85 -### ERP更新换货单状态  
86 -TOPIC:erp.updateChangeOrderStatus  
87 -```json  
88 -{"id":1,"status":40}  
89 -```  
90 -  
91 -  
92 -### 前台创建退货单  
93 -TOPIC:order.createRefundOrder  
94 -  
95 -  
96 -### ERP创建退货单  
97 -TOPIC:erp.createRefundOrder  
98 -```json  
99 -{"id":1,"returned_id":1,"returned_status":10,"real_returned_amount":100,"is_return_coupon":"N","return_yoho_coin":11111}  
100 -```  
101 -  
102 -### 前台更新退货快递信息  
103 -TOPIC:order.updateRefundOrderExpressInfo  
104 -```json  
105 -{"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"}  
106 -```  
107 -  
108 -### ERP更新退货单状态  
109 -TOPIC:erp.updateRefundOrderStatus  
110 -```json  
111 -{"id":1,"status":40}  
112 -```  
113 -  
114 -  
115 -  
116 -  
117 -  
118 - 1 +## 调试接口
  2 +
  3 +### 更新订单状态
  4 +hosts 192.168.50.69 api.erp.yohobuy.com
  5 +
  6 +#### 输入
  7 +method=orders.orders.updateStatus&order_code=2011031721
  8 +
  9 +#### 输出
  10 +```json
  11 +{
  12 + "code":200,
  13 + "message":"ok",
  14 + "data":null
  15 +}
  16 +```
  17 +code==200表示成功,其它都为失败
  18 +
  19 +## MQ消息数据结构
  20 +
  21 +
  22 +### 取消订单MQ消息
  23 +TOPIC:order.cancel
  24 +```json
  25 +{"orderCode":100000,"status":900}
  26 +```
  27 +
  28 +### 订单状态同步MQ消息
  29 +TOPIC:order.erpstatus
  30 +```json
  31 +{"orderCode":100000,"status":901}
  32 +```
  33 +
  34 +
  35 +### 前台创建换货单
  36 +TOPIC:order.createChangeOrder
  37 +```json
  38 +{
  39 + "id": 1,
  40 + "city": "南京市",
  41 + "area_code": "320115",
  42 + "address": "江宁经济技术开发区苏源大道87号(有货物流中心订单组)",
  43 + "consignee_name": "测试",
  44 + "county": "江宁区",
  45 + "delivery_tpye": 10,
  46 + "email": "",
  47 + "exchange_mode": 10,
  48 + "mobile": "13776693005",
  49 + "order_code": 16062099,
  50 + "province": "江苏省",
  51 + "receipt_time": "2",
  52 + "remark": "用户换货",
  53 + "uid": 8041518,
  54 + "zip_code": "211100",
  55 + "goods": [
  56 + {
  57 + "exchange_reason": "3",
  58 + "goods_type": "1",
  59 + "last_price": "88.00",
  60 + "new_goods_id": 354687,
  61 + "new_product_skc": 279434,
  62 + "new_product_sku": 892152,
  63 + "product_skc": 279434,
  64 + "product_skn": 51152761,
  65 + "product_sku": 892152,
  66 + "remark": ""
  67 + }
  68 + ]
  69 +}
  70 +```
  71 +
  72 +### ERP创建换货单
  73 +TOPIC:erp.createChangeOrder
  74 +```json
  75 +{"id":1,"init_order_code":"111","source_order_code":1111,"new_order_code":1111,"exchange_id":111,"returned_id":111,"exchange_status":10,"returned_status":10}
  76 +```
  77 +
  78 +### 前台更新换货快递信息
  79 +TOPIC:order.updateChangeOrderExpressInfo
  80 +```json
  81 +{"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"}
  82 +```
  83 +
  84 +### ERP更新换货单状态
  85 +TOPIC:erp.updateChangeOrderStatus
  86 +```json
  87 +{"id":1,"status":40}
  88 +```
  89 +
  90 +
  91 +### 前台创建退货单
  92 +TOPIC:order.createRefundOrder
  93 +
  94 +
  95 +### ERP创建退货单
  96 +TOPIC:erp.createRefundOrder
  97 +```json
  98 +{"id":1,"returned_id":1,"returned_status":10,"real_returned_amount":100,"is_return_coupon":"N","return_yoho_coin":11111}
  99 +```
  100 +
  101 +### 前台更新退货快递信息
  102 +TOPIC:order.updateRefundOrderExpressInfo
  103 +```json
  104 +{"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"}
  105 +```
  106 +
  107 +### ERP更新退货单状态
  108 +TOPIC:erp.updateRefundOrderStatus
  109 +```json
  110 +{"id":1,"status":40}
  111 +```
  112 +
  113 +
  114 +
  115 +
  116 +
  117 +