12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace app\modules\car\models;
- use Yii;
- /**
- * This is the model class for table "{{%f_stats_fuel_hkm}}".
- *
- * @property int $id 序号
- * @property string|null $city 地市
- * @property string|null $dpt_sec 二级单位
- * @property string|null $grid 网格
- * @property string|null $car_src 车辆来源
- * @property string|null $car_type 车辆类型
- * @property string|null $using_tag 车辆使用性质
- * @property float|null $oil_hkm 百公里油耗
- * @property int|null $year 年
- * @property int|null $month 月
- */
- class FStatsFuelHkm extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%f_stats_fuel_hkm}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['oil_hkm'], 'number'],
- [['year', 'month'], 'integer'],
- [['city', 'dpt_sec', 'grid', 'car_src', 'car_type', 'using_tag'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => '序号',
- 'city' => '地市',
- 'dpt_sec' => '二级单位',
- 'grid' => '网格',
- 'car_src' => '车辆来源',
- 'car_type' => '车辆类型',
- 'using_tag' => '车辆使用性质',
- 'oil_hkm' => '百公里油耗',
- 'year' => '年',
- 'month' => '月',
- ];
- }
- }
|