68 lines
1.8 KiB
PHP
68 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "yii_ledger_log".
|
|
*
|
|
* @property int $id
|
|
* @property int $order_id 订单id
|
|
* @property int $user_id 用户id 非user表的id
|
|
* @property int $user_type 用户类型 1平台 2技术方 3业务员 4仓库
|
|
* @property int $order_type 1产品订单 2挂号订单
|
|
* @property int $fee_type 1药品费用 2挂号费用 3快递费用 4代煎费用
|
|
* @property int $su_id 医生id
|
|
* @property int $drugstore_id 仓库id
|
|
* @property int $drug_id 药品id
|
|
* @property float $money 奋勇金额
|
|
* @property int $status 结算状态 0待结算 1已结算 2已取消
|
|
* @property int $created_at
|
|
* @property int $updated_at
|
|
*/
|
|
class Ledger extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_ledger';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['order_id', 'user_id', 'user_type', 'order_type', 'fee_type', 'su_id', 'drugstore_id', 'drug_id', 'status', 'created_at', 'updated_at'], 'integer'],
|
|
[['user_id', 'created_at', 'updated_at'], 'required'],
|
|
[['money'], 'number'],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'order_id' => 'Order ID',
|
|
'user_id' => 'User ID',
|
|
'user_type' => 'User Type',
|
|
'order_type' => 'order Type',
|
|
'fee_type' => 'fee Type',
|
|
'su_id' => 'Su ID',
|
|
'drugstore_id' => 'Drugstore ID',
|
|
'drug_id' => 'Drug ID',
|
|
'money' => 'Money',
|
|
'status' => 'Status',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|