Files
xk-api-yii/common/modelsgii/Reconciliation.php
2024-09-19 11:32:39 +08:00

65 lines
1.8 KiB
PHP

<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "yii_reconciliation".
*
* @property int $id
* @property int $store_id 门店id
* @property int $order_id 产品订单id
* @property int $drug_id 药品id
* @property int $drug_type 药品类型 1中药 2西药 3颗粒药 4中成药
* @property int $number 药品数量
* @property int $pay_time 支付时间
* @property float $total_buy_price 供货金额
* @property float $total_price 销售金额
* @property int $status 1正常 -1用户退款
* @property int $created_at
* @property int $updated_at
*/
class Reconciliation extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_reconciliation';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['store_id', 'order_id', 'drug_id', 'drug_type', 'number', 'pay_time', 'total_buy_price', 'total_price', 'created_at', 'updated_at'], 'required'],
[['store_id', 'order_id', 'drug_id', 'drug_type', 'number', 'pay_time', 'status', 'created_at', 'updated_at'], 'integer'],
[['total_buy_price', 'total_price'], 'number'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'store_id' => 'Store ID',
'order_id' => 'Order ID',
'drug_id' => 'Drug ID',
'drug_type' => 'Drug Type',
'number' => 'Number',
'pay_time' => 'Pay Time',
'total_buy_price' => 'Total Buy Price',
'total_price' => 'Total Price',
'status' => 'Status',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}