|
@ -10,15 +10,8 @@ use yii\behaviors\TimestampBehavior; |
|
|
* |
|
|
* |
|
|
* @property int $id |
|
|
* @property int $id |
|
|
* @property string $name 名称 |
|
|
* @property string $name 名称 |
|
|
* @property string $province 省份 |
|
|
|
|
|
* @property string $city 城市 |
|
|
|
|
|
* @property string $area 区域 |
|
|
|
|
|
* @property int $extra_price 续重运费 |
|
|
|
|
|
* @property int $updated_at 更新时间 |
|
|
* @property int $updated_at 更新时间 |
|
|
* @property int $created_at 创建时间 |
|
|
* @property int $created_at 创建时间 |
|
|
* @property int $basic_price 基本运费 |
|
|
|
|
|
* @property int $basic_count 基本数量 |
|
|
|
|
|
* @property int $extra_count 续重数量 |
|
|
|
|
|
* @property int $calculation_type 计算方式 |
|
|
* @property int $calculation_type 计算方式 |
|
|
*/ |
|
|
*/ |
|
|
class ExpressTemplate extends \yii\db\ActiveRecord |
|
|
class ExpressTemplate extends \yii\db\ActiveRecord |
|
@ -46,10 +39,8 @@ class ExpressTemplate extends \yii\db\ActiveRecord |
|
|
{ |
|
|
{ |
|
|
return [ |
|
|
return [ |
|
|
[['name'], 'required'], |
|
|
[['name'], 'required'], |
|
|
[['province', 'city', 'area'], 'string'], |
|
|
|
|
|
[['calculation_type'], 'integer'], |
|
|
[['calculation_type'], 'integer'], |
|
|
[['name'], 'string', 'max' => 255], |
|
|
|
|
|
[['extra_price', 'basic_price', 'basic_count', 'extra_count'], 'safe'] |
|
|
|
|
|
|
|
|
[['name'], 'string', 'max' => 255] |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -61,15 +52,8 @@ class ExpressTemplate extends \yii\db\ActiveRecord |
|
|
return [ |
|
|
return [ |
|
|
'id' => 'id', |
|
|
'id' => 'id', |
|
|
'name' => '名称', |
|
|
'name' => '名称', |
|
|
'province' => '省份', |
|
|
|
|
|
'city' => '城市', |
|
|
|
|
|
'area' => '区域', |
|
|
|
|
|
'extra_price' => '续重运费', |
|
|
|
|
|
'updated_at' => '更新时间', |
|
|
'updated_at' => '更新时间', |
|
|
'created_at' => '创建时间', |
|
|
'created_at' => '创建时间', |
|
|
'basic_price' => '基本运费', |
|
|
|
|
|
'basic_count' => '基本数量', |
|
|
|
|
|
'extra_count' => '续重数量', |
|
|
|
|
|
'calculation_type' => '计算方式', |
|
|
'calculation_type' => '计算方式', |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|