...
|
...
|
@@ -11,6 +11,7 @@ |
|
|
| 消费者 | erp.createChangeOrder | ERP创建换货单 |
|
|
|
| 生产者 | order.updateChangeRefundOrderExpressInfo | 用户更新换货订单快递信息、用户更新退货订单快递信息 |
|
|
|
| 消费者 | erp.updateChangeRefundOrderStatus | ERP退换货状态变更|
|
|
|
| 消费者 | erp.updateChangeRefundOrder | ERP退换货信息变更|
|
|
|
| 生产者 | order.createRefundOrder | 前台创建退货单 |
|
|
|
| 消费者 | erp.createRefundOrder | ERP创建退货单 |
|
|
|
| 生产者 | [order.changeRefundCancel](#取消退换货) | 用户取消退货单、用户取消换货单 |
|
...
|
...
|
@@ -278,6 +279,37 @@ |
|
|
}
|
|
|
```
|
|
|
|
|
|
## ERP更新换货单信息
|
|
|
### MQ消息数据结构
|
|
|
| 参数 | 值 |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | erp.updateChangeRefundOrder |
|
|
|
|
|
|
> 换货消息
|
|
|
```json
|
|
|
{
|
|
|
"id":1, // id为erp系统换货单id唯一主键
|
|
|
"uid":1111,
|
|
|
"express_number": "603596395359",
|
|
|
"express_name": "顺丰",
|
|
|
"express_id": 23,
|
|
|
"type":"change" //"change" 表示换货类型,"refund"表示退货类型
|
|
|
}
|
|
|
```
|
|
|
|
|
|
> 退货消息
|
|
|
```json
|
|
|
{
|
|
|
"id":1, // id为erp系统退货单id唯一主键
|
|
|
"uid":1111,
|
|
|
"express_number": "603596395359",
|
|
|
"express_name": "顺丰",
|
|
|
"express_id": 23,
|
|
|
"type":"change" //"change" 表示换货类型,"refund"表示退货类型
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
## 前台创建退货单
|
|
|
|
...
|
...
|
@@ -498,3 +530,31 @@ |
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## 财务退款
|
|
|
|
|
|
|
|
|
### MQ消息数据结构
|
|
|
| 参数 | 值 |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | erp.yohoOrderRefund |
|
|
|
|
|
|
```json
|
|
|
|
|
|
{
|
|
|
"uid": 8050310,
|
|
|
"order_code": 1718050455,
|
|
|
"refund_type": "1", //退款方式
|
|
|
"refund_amount": 12.11,
|
|
|
"refund_time": 1483387378
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|