1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- namespace app\modules\car\models;
- use Yii;
- /**
- * This is the model class for table "{{%f_stats_cost_avg}}".
- *
- * @property int $id 序号
- * @property string|null $city 地市
- * @property string|null $dpt_sec 二级单位
- * @property string|null $grid 网格
- * @property string|null $car_type 车辆类型
- * @property int|null $car_num 车辆数量
- * @property string|null $using_tag 车辆性质
- * @property float|null $fee_avg 单车费用平均值
- * @property float|null $driv_avg 单车运行费用平均值
- * @property float|null $oil_avg 单车油料费平均值
- * @property float|null $insu_avg 单车保险费平均值
- * @property float|null $main_avg 单车维修费用平均值
- * @property float|null $rb_avg 单车路桥费平均值
- * @property float|null $rent_avg 单车租赁费平均值
- * @property float|null $yc_avg 单车年检费平均值
- * @property float|null $other_avg 单车其他费用平均值
- * @property int|null $year 年
- * @property int|null $month 月
- */
- class FStatsCostAvg extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%f_stats_cost_avg}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['car_num', 'year', 'month'], 'integer'],
- [['fee_avg', 'driv_avg', 'oil_avg', 'insu_avg', 'main_avg', 'rb_avg', 'rent_avg', 'yc_avg', 'other_avg'], 'number'],
- [['city', 'dpt_sec', 'grid', 'car_type', 'using_tag'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => '序号',
- 'city' => '地市',
- 'dpt_sec' => ' 二级单位',
- 'grid' => '网格',
- 'car_type' => '车辆类型',
- 'car_num' => '车辆数量',
- 'using_tag' => '车辆性质',
- 'fee_avg' => '单车费用平均值',
- 'driv_avg' => '单车运行费用平均值',
- 'oil_avg' => '单车油料费平均值',
- 'insu_avg' => '单车保险费平均值',
- 'main_avg' => '单车维修费用平均值',
- 'rb_avg' => '单车路桥费平均值',
- 'rent_avg' => '单车租赁费平均值',
- 'yc_avg' => '单车年检费平均值',
- 'other_avg' => '单车其他费用平均值',
- 'year' => '年',
- 'month' => '月',
- ];
- }
- }
|