FInputPolicy.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?php
  2. namespace app\modules\car\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%f_input_policy}}".
  6. *
  7. * @property int $id id
  8. * @property string|null $creator 创建人
  9. * @property string $a_time 创建时间
  10. * @property string|null $m_time 修改时间
  11. * @property int|null $is_active 激活状态
  12. * @property int|null $jan_work_days 1月工作日
  13. * @property int|null $feb_work_days 2月工作日
  14. * @property int|null $mar_work_days 3月工作日
  15. * @property int|null $apr_work_days 4月工作日
  16. * @property int|null $may_work_days 5月工作日
  17. * @property int|null $jun_work_days 6月工作日
  18. * @property int|null $jul_work_days 7月工作日
  19. * @property int|null $aug_work_days 8月工作日
  20. * @property int|null $sep_work_days 9月工作日
  21. * @property int|null $oct_work_days 10月工作日
  22. * @property int|null $nov_work_days 11月工作日
  23. * @property int|null $dec_work_days 12月工作日
  24. * @property float|null $thd_att 出勤率(单位:%)
  25. * @property float|null $thd_km_per_day 日均里程(单位:公里/天)
  26. * @property float|null $thd_mdf_car_ord 触发车辆调整(低效占比门限单位:%)
  27. * @property int|null $overaged_pkp 皮卡超龄
  28. * @property int|null $overage_truck 货车超龄
  29. * @property int|null $overage_sedan 轿车超龄
  30. * @property int|null $overage_off_road 越野车超龄
  31. * @property int|null $overage_bpv 商务车超龄
  32. * @property int|null $overage_mini 微型面包车超龄
  33. * @property int|null $overage_micro 微型双排超龄
  34. * @property float|null $abnor_fuel_pkp 皮卡油耗异常
  35. * @property float|null $abnor_fuel_mini 微型面包车油耗异常
  36. * @property float|null $abnor_fuel_bpv 商务车油耗异常
  37. * @property float|null $abnor_fuel_sedan 轿车油耗异常
  38. * @property float|null $abnor_fuel_off_road 越野车油耗异常
  39. * @property float|null $abnor_fuel_other 其他车辆油耗异常
  40. * @property float|null $fuel_price_avg 汽油平均价格
  41. * @property float|null $diesel_price_avg 柴油平均价格
  42. * @property float|null $thd_insurance 保险费超标门限
  43. * @property float|null $thd_repair 维修费超标门限
  44. * @property float|null $thd_rb 路桥费超标门限
  45. */
  46. class FInputPolicy extends \app\common\models\EActiveRecord
  47. {
  48. /**
  49. * {@inheritdoc}
  50. */
  51. public static function tableName()
  52. {
  53. return '{{%f_input_policy}}';
  54. }
  55. /**
  56. * {@inheritdoc}
  57. */
  58. public function rules()
  59. {
  60. return [
  61. [['a_time', 'm_time'], 'safe'],
  62. [['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'],
  63. [['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'],
  64. [['creator'], 'string', 'max' => 255],
  65. ];
  66. }
  67. /**
  68. * {@inheritdoc}
  69. */
  70. public function attributeLabels()
  71. {
  72. return [
  73. 'id' => 'id',
  74. 'creator' => '创建人',
  75. 'a_time' => '创建时间',
  76. 'm_time' => '修改时间',
  77. 'is_active' => '激活状态',
  78. 'jan_work_days' => '1月工作日',
  79. 'feb_work_days' => '2月工作日',
  80. 'mar_work_days' => '3月工作日',
  81. 'apr_work_days' => '4月工作日',
  82. 'may_work_days' => '5月工作日',
  83. 'jun_work_days' => '6月工作日',
  84. 'jul_work_days' => '7月工作日',
  85. 'aug_work_days' => '8月工作日',
  86. 'sep_work_days' => '9月工作日',
  87. 'oct_work_days' => '10月工作日',
  88. 'nov_work_days' => '11月工作日',
  89. 'dec_work_days' => '12月工作日',
  90. 'thd_att' => '出勤率(单位:%)',
  91. 'thd_km_per_day' => '日均里程(单位:公里/天)',
  92. 'thd_mdf_car_ord' => '触发车辆调整(低效占比门限单位:%)',
  93. 'overaged_pkp' => '皮卡超龄',
  94. 'overage_truck' => '货车超龄',
  95. 'overage_sedan' => '轿车超龄',
  96. 'overage_off_road' => '越野车超龄',
  97. 'overage_bpv' => '商务车超龄',
  98. 'overage_mini' => '微型面包车超龄',
  99. 'overage_micro' => '微型双排超龄',
  100. 'abnor_fuel_pkp' => '皮卡油耗异常',
  101. 'abnor_fuel_mini' => '微型面包车油耗异常',
  102. 'abnor_fuel_bpv' => '商务车油耗异常',
  103. 'abnor_fuel_sedan' => '轿车油耗异常',
  104. 'abnor_fuel_off_road' => '越野车油耗异常',
  105. 'abnor_fuel_other' => '其他车辆油耗异常',
  106. 'fuel_price_avg' => '汽油平均价格',
  107. 'diesel_price_avg' => '柴油平均价格',
  108. 'thd_insurance' => '保险费超标门限',
  109. 'thd_repair' => '维修费超标门限',
  110. 'thd_rb' => '路桥费超标门限',
  111. ];
  112. }
  113. }