1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php
- namespace app\modules\car\models;
- use Yii;
- /**
- * This is the model class for table "{{%f_stats_inefficient_car}}".
- *
- * @property int $id 序号
- * @property string|null $city 地市
- * @property string|null $sec_unit 二级单位
- * @property string|null $grid 网格
- * @property int|null $car_num 车辆数量
- * @property int|null $ineff_car 低效车辆数量
- * @property float|null $ineff_per 低效车占比
- * @property int|null $is_lt_5 是否低效占比小于0.05
- * @property int|null $mile_0 平均每日0公里
- * @property int|null $mile_0_10 平均每日0to10公里
- * @property int|null $mile_10_20 平均每日10to20公里
- * @property int|null $mile_20_30 平均每日20to30公里
- * @property int|null $mile_30_40 平均每日30to40公里
- * @property int|null $mile_40_50 平均每日40to50公里
- * @property int|null $atte_0 出勤率0
- * @property int|null $atte_0_20 出勤率0to20
- * @property int|null $atte_20_50 出勤率20to50
- * @property int|null $atte_50_80 出勤率50to80
- * @property int|null $atte_80 出勤率80以上
- * @property int|null $year 年
- * @property int|null $month 月
- */
- class FStatsInefficientCar extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%f_stats_inefficient_car}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['car_num', 'ineff_car', 'is_lt_5', 'mile_0', 'mile_0_10', 'mile_10_20', 'mile_20_30', 'mile_30_40', 'mile_40_50', 'atte_0', 'atte_0_20', 'atte_20_50', 'atte_50_80', 'atte_80', 'year', 'month'], 'integer'],
- [['ineff_per'], 'number'],
- [['city', 'sec_unit', 'grid'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => '序号',
- 'city' => '地市',
- 'sec_unit' => '二级单位',
- 'grid' => '网格',
- 'car_num' => '车辆数量',
- 'ineff_car' => '低效车辆数量',
- 'ineff_per' => '低效车占比',
- 'is_lt_5' => '是否低效占比小于0.05',
- 'mile_0' => '平均每日0公里',
- 'mile_0_10' => '平均每日0to10公里',
- 'mile_10_20' => '平均每日10to20公里',
- 'mile_20_30' => '平均每日20to30公里',
- 'mile_30_40' => '平均每日30to40公里',
- 'mile_40_50' => '平均每日40to50公里',
- 'atte_0' => '出勤率0',
- 'atte_0_20' => '出勤率0to20',
- 'atte_20_50' => '出勤率20to50',
- 'atte_50_80' => '出勤率50to80',
- 'atte_80' => '出勤率80以上',
- 'year' => '年',
- 'month' => '月',
- ];
- }
- }
|