123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <?php
- namespace app\modules\car\models;
- use Yii;
- /**
- * This is the model class for table "{{%f_input_policy}}".
- *
- * @property int $id id
- * @property string|null $creator 创建人
- * @property string $a_time 创建时间
- * @property string|null $m_time 修改时间
- * @property int|null $is_active 激活状态
- * @property int|null $jan_work_days 1月工作日
- * @property int|null $feb_work_days 2月工作日
- * @property int|null $mar_work_days 3月工作日
- * @property int|null $apr_work_days 4月工作日
- * @property int|null $may_work_days 5月工作日
- * @property int|null $jun_work_days 6月工作日
- * @property int|null $jul_work_days 7月工作日
- * @property int|null $aug_work_days 8月工作日
- * @property int|null $sep_work_days 9月工作日
- * @property int|null $oct_work_days 10月工作日
- * @property int|null $nov_work_days 11月工作日
- * @property int|null $dec_work_days 12月工作日
- * @property float|null $thd_att 出勤率(单位:%)
- * @property float|null $thd_km_per_day 日均里程(单位:公里/天)
- * @property float|null $thd_mdf_car_ord 触发车辆调整(低效占比门限单位:%)
- * @property int|null $overaged_pkp 皮卡超龄
- * @property int|null $overage_truck 货车超龄
- * @property int|null $overage_sedan 轿车超龄
- * @property int|null $overage_off_road 越野车超龄
- * @property int|null $overage_bpv 商务车超龄
- * @property int|null $overage_mini 微型面包车超龄
- * @property int|null $overage_micro 微型双排超龄
- * @property float|null $abnor_fuel_pkp 皮卡油耗异常
- * @property float|null $abnor_fuel_mini 微型面包车油耗异常
- * @property float|null $abnor_fuel_bpv 商务车油耗异常
- * @property float|null $abnor_fuel_sedan 轿车油耗异常
- * @property float|null $abnor_fuel_off_road 越野车油耗异常
- * @property float|null $abnor_fuel_other 其他车辆油耗异常
- * @property float|null $fuel_price_avg 汽油平均价格
- * @property float|null $diesel_price_avg 柴油平均价格
- * @property float|null $thd_insurance 保险费超标门限
- * @property float|null $thd_repair 维修费超标门限
- * @property float|null $thd_rb 路桥费超标门限
- */
- class FInputPolicy extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%f_input_policy}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['a_time', 'm_time'], 'safe'],
- [['is_active', 'jan_work_days', 'feb_work_days', 'mar_work_days', 'apr_work_days', 'may_work_days', 'jun_work_days', 'jul_work_days', 'aug_work_days', 'sep_work_days', 'oct_work_days', 'nov_work_days', 'dec_work_days', 'overaged_pkp', 'overage_truck', 'overage_sedan', 'overage_off_road', 'overage_bpv', 'overage_mini', 'overage_micro'], 'integer'],
- [['thd_att', 'thd_km_per_day', 'thd_mdf_car_ord', 'abnor_fuel_pkp', 'abnor_fuel_mini', 'abnor_fuel_bpv', 'abnor_fuel_sedan', 'abnor_fuel_off_road', 'abnor_fuel_other', 'fuel_price_avg', 'diesel_price_avg', 'thd_insurance', 'thd_repair', 'thd_rb'], 'number'],
- [['creator'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'id',
- 'creator' => '创建人',
- 'a_time' => '创建时间',
- 'm_time' => '修改时间',
- 'is_active' => '激活状态',
- 'jan_work_days' => '1月工作日',
- 'feb_work_days' => '2月工作日',
- 'mar_work_days' => '3月工作日',
- 'apr_work_days' => '4月工作日',
- 'may_work_days' => '5月工作日',
- 'jun_work_days' => '6月工作日',
- 'jul_work_days' => '7月工作日',
- 'aug_work_days' => '8月工作日',
- 'sep_work_days' => '9月工作日',
- 'oct_work_days' => '10月工作日',
- 'nov_work_days' => '11月工作日',
- 'dec_work_days' => '12月工作日',
- 'thd_att' => '出勤率(单位:%)',
- 'thd_km_per_day' => '日均里程(单位:公里/天)',
- 'thd_mdf_car_ord' => '触发车辆调整(低效占比门限单位:%)',
- 'overaged_pkp' => '皮卡超龄',
- 'overage_truck' => '货车超龄',
- 'overage_sedan' => '轿车超龄',
- 'overage_off_road' => '越野车超龄',
- 'overage_bpv' => '商务车超龄',
- 'overage_mini' => '微型面包车超龄',
- 'overage_micro' => '微型双排超龄',
- 'abnor_fuel_pkp' => '皮卡油耗异常',
- 'abnor_fuel_mini' => '微型面包车油耗异常',
- 'abnor_fuel_bpv' => '商务车油耗异常',
- 'abnor_fuel_sedan' => '轿车油耗异常',
- 'abnor_fuel_off_road' => '越野车油耗异常',
- 'abnor_fuel_other' => '其他车辆油耗异常',
- 'fuel_price_avg' => '汽油平均价格',
- 'diesel_price_avg' => '柴油平均价格',
- 'thd_insurance' => '保险费超标门限',
- 'thd_repair' => '维修费超标门限',
- 'thd_rb' => '路桥费超标门限',
- ];
- }
- }
|