89 lines
3.0 KiB
PHP
89 lines
3.0 KiB
PHP
<?php
|
||
|
||
namespace common\modelsgii\oldDb;
|
||
|
||
/**
|
||
* This is the model class for table "yii_store".
|
||
*
|
||
* @property int $id
|
||
* @property int $plate_id
|
||
* @property int $drugstore_id
|
||
* @property int $erp_id
|
||
* @property string $name
|
||
* @property string $shouzimu
|
||
* @property int $province_id 省
|
||
* @property int $city_id 市
|
||
* @property string $position 位置
|
||
* @property string $pic 图片
|
||
* @property string $start_time 开始营业时间
|
||
* @property string $end_time 结束营业时间
|
||
* @property string $contact 联系人
|
||
* @property int $uid 业务员ID
|
||
* @property string $code 联系电话
|
||
* @property string $mobile 联系电话
|
||
* @property string $qr_code 门店码
|
||
* @property string $store_set_sale_z 门店自己设置中药销售比例
|
||
* @property string $store_set_sale_g 门店自己设置配方颗粒的销售比例
|
||
* @property string $g_bug_percent 配方颗粒采购比例
|
||
* @property string $g_sale_percent 配方颗粒销售比例
|
||
* @property string $z_buy_percent 中药采购比例
|
||
* @property string $z_sale_percent 中药销售比例
|
||
* @property string $bank_user_name 开户人姓名
|
||
* @property string $bank_card 银行卡号
|
||
* @property string $bank_name 开户行
|
||
* @property int $bank_account_type 银行账户类型 1:对公,2:对私,5:存折
|
||
* @property string $bank_no 银行联行号bank_account_type=1或5或非62开头的对私银行账户时必选
|
||
* @property int $created_at
|
||
* @property int $updated_at
|
||
* @property int $is_delete 是否删除0否1是
|
||
*/
|
||
class Store extends \common\core\BaseActiveRecord
|
||
{
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public static function tableName()
|
||
{
|
||
return 'yii_store';
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function rules()
|
||
{
|
||
return [
|
||
[['name'], 'required'],
|
||
[['created_at', 'updated_at', 'is_delete','plate_id','drugstore_id','bank_account_type','uid','province_id','city_id','erp_id'], 'integer'],
|
||
[['name','contact'], 'string', 'max' => 100],
|
||
[['position', 'pic'], 'string', 'max' => 255],
|
||
[['mobile'], 'string', 'max' => 20],
|
||
[['code'], 'string', 'max' => 30],
|
||
[['qr_code','z_buy_percent','z_sale_percent','g_bug_percent','g_sale_percent','store_set_sale_z','store_set_sale_g','shouzimu','bank_no','bank_name','bank_card','bank_user_name','start_time','end_time'], 'string'],
|
||
];
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function attributeLabels()
|
||
{
|
||
return [
|
||
'id' => 'ID',
|
||
'erp_id' => 'Erp_Id',
|
||
'name' => '名字',
|
||
'position' => '位置',
|
||
'pic' => 'Pic',
|
||
'contact' => '联系人',
|
||
'mobile' => '联系电话',
|
||
'code' => '推广码',
|
||
'qr_code' => '门店码',
|
||
'start_time' => '开始营业时间',
|
||
'end_time' => '结束营业时间',
|
||
'created_at' => 'Created At',
|
||
'updated_at' => 'Updated At',
|
||
'is_delete' => '是否删除',
|
||
];
|
||
}
|
||
}
|