数据表:ims_yz_consume_reward_order(消费报销--订单表)。
| 字段 | 类型 | 默认值 | 约束 | 说明 |
|---|---|---|---|---|
id | integer unsigned | - | 非空、自增 | |
uniacid | integer unsigned | - | 非空 | 公众号id |
uid | integer unsigned | - | 非空 | 用户id |
order_id | integer unsigned | - | 非空 | 订单id |
order_sn | string(255) | - | 非空 | 订单号 |
base_amount | decimal unsigned | - | 非空 | 计算金额 |
base_percent | decimal unsigned | - | 非空 | 报销比例 |
base_type | boolean unsigned | 1 | 非空 | 计算金额类型 1实付价格 2商品价格 |
examine_state | boolean unsigned | 0 | 非空 | 审核状态 0通用设置 1强制审核 2强制不审核 |
sum_amount | decimal unsigned | - | 非空 | 报销总金额 |
rest_amount | decimal unsigned | - | 非空 | 未报销金额 |
invalid_amount | decimal unsigned | - | 非空 | 已失效金额 |
return_amount | decimal unsigned | 0.00 | 非空 | 已报销金额 |
pay_state | boolean unsigned | - | 非空 | 支付状态 0:未支付 1已支付 |
state | boolean unsigned | - | 非空 | 报销状态 0:未报销 1待审核 2报销中 3报销完成 4冻结中 5已失效 |
reward_start_time | integer | - | - | 报销开始时间 |
reward_end_time | integer | - | - | 报销结束时间 |
next_reward_time | integer | - | - | 下一次报销时间 |
reward_day | integer | 0 | 非空 | 报销天数 |
reward_space | integer unsigned | 0 | 非空 | 报销间隔天数 |
reward_count | integer unsigned | 0 | 非空 | 总报销次数 |
return_count | integer unsigned | 0 | 非空 | 已报销次数 |
rest_count | integer unsigned | 0 | 非空 | 剩余报销次数 |
order_create_time | integer | - | - | 订单创建时间 |
order_receive_time | integer | - | - | 订单完成时间 |
created_at | integer | - | - | |
updated_at | integer | - | - | |
deleted_at | integer | - | - |
