订单相关类型及状态
订单状态
声明方式:
枚举:com.enation.app.shop.trade.model.enums.OrderStatus
存储:
es_order表 order_status字段详细说明
| NEW | 新订单 |
|---|---|
| INTODB_ERROR | 入库失败 |
| CONFIRM | 已确认 |
| PAID_OFF | 已付款 |
| SHIPPED | 已发货 |
| ROG | 已收货 |
| COMPLETE | 已完成 |
| CANCELLED | 已取消 |
| AFTER_SERVICE | 售后中 |
支付状态
声明方式:
枚举:com.enation.app.shop.trade.model.enums.PayStatus存储:
es_order表 pay_status 字段详细说明
| PAY_NO | 未付款 |
|---|---|
| PAY_PARTIAL | 部分支付 |
| PAY_YES | 已付款 |
发货状态
声明方式:
枚举:com.enation.app.shop.trade.model.enums.ShipStatus存储:
es_order表 ship_status 字段详细说明
| SHIP_NO | 未发货 |
|---|---|
| SHIP_YES | 已发货 |
| SHIP_ROG | 已收货 |
支付类型
声明方式:
枚举:com.enation.app.shop.trade.model.vo.PaymentType存储:
es_order表 payment_type 字段详细说明
| online | 在线支付 |
|---|---|
| offline | 线下支付 |
| cod | 货到付款 |
订单操作类型
声明方式:
枚举:com.enation.app.shop.trade.model.enums.OrderOperate详细说明
| confirm | 确认 |
|---|---|
| pay | 支付 |
| ship | 发货 |
| rog | 确认收货 |
| cancel | 取消 |
| comment | 评论 |
| complete | 完成 |
流程、状态、操作的定义和检查
位置:
com.enation.app.shop.trade.support.OrderOperateChecker定义:
//定义流程
static{
//定义货到付款流程
initCodFlow();
//定义款到发货流程
initPayfirstFlow();
}