You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.6 KiB
55 lines
1.6 KiB
<?php
|
|
|
|
namespace app\model;
|
|
|
|
/**
|
|
* @property int $id
|
|
* @property int $pre_stock_id
|
|
* @property int $user_id
|
|
* @property int $status
|
|
* @property int $order_no
|
|
* @property int $num
|
|
* @property int $price
|
|
* @property int $amount
|
|
* @property int $fee
|
|
* @property int $get_num
|
|
* @property int $get_amount
|
|
* @property int $get_fee
|
|
* @property int $fee_rate
|
|
* @property int $get_time
|
|
* @property int $create_time
|
|
* @property int $update_time
|
|
*/
|
|
class UserBrlPreStockOrderModel extends BaseModel
|
|
{
|
|
protected $name = 'user_brl_pre_stock_order';
|
|
protected $pk = 'id';
|
|
|
|
const STATUS_DOING = 1; // 申购中
|
|
const STATUS_SIGNING = 2; // 已签名
|
|
const STATUS_SIGNED = 3; // 已上市
|
|
const STATUS_UNSIGNED = 4; // 未中签
|
|
const STATUS_POST_PAY = 5; // 后支付
|
|
const STATUS_POST_PAY_BACK = 6; // 后支付驳回
|
|
const STATUS_REFUND = 7; // 订单退款
|
|
const STATUS_CLOSED = 8; // 订单关闭
|
|
|
|
public static $statusList = [
|
|
self::STATUS_DOING => '申购中',
|
|
self::STATUS_SIGNING => '中签',//'已签名',
|
|
self::STATUS_SIGNED => '已上市',
|
|
self::STATUS_UNSIGNED => '未中签',
|
|
self::STATUS_POST_PAY => '申购中(待支付)',
|
|
self::STATUS_POST_PAY_BACK => '已上市(未支付)',
|
|
self::STATUS_REFUND => '订单退款',
|
|
self::STATUS_CLOSED => '订单关闭',
|
|
];
|
|
|
|
const PAY_TYPE_ONE = 1;//正常支付
|
|
const PAY_TYPE_TWO = 2;//后支付
|
|
|
|
public static function getRealFee($userId)
|
|
{
|
|
return self::where('user_id', $userId)->sum('get_fee');
|
|
}
|
|
}
|