FStatsInefficientCar.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. namespace app\modules\car\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%f_stats_inefficient_car}}".
  6. *
  7. * @property int $id 序号
  8. * @property string|null $city 地市
  9. * @property string|null $sec_unit 二级单位
  10. * @property string|null $grid 网格
  11. * @property int|null $car_num 车辆数量
  12. * @property int|null $ineff_car 低效车辆数量
  13. * @property float|null $ineff_per 低效车占比
  14. * @property int|null $is_lt_5 是否低效占比小于0.05
  15. * @property int|null $mile_0 平均每日0公里
  16. * @property int|null $mile_0_10 平均每日0to10公里
  17. * @property int|null $mile_10_20 平均每日10to20公里
  18. * @property int|null $mile_20_30 平均每日20to30公里
  19. * @property int|null $mile_30_40 平均每日30to40公里
  20. * @property int|null $mile_40_50 平均每日40to50公里
  21. * @property int|null $atte_0 出勤率0
  22. * @property int|null $atte_0_20 出勤率0to20
  23. * @property int|null $atte_20_50 出勤率20to50
  24. * @property int|null $atte_50_80 出勤率50to80
  25. * @property int|null $atte_80 出勤率80以上
  26. * @property int|null $year 年
  27. * @property int|null $month 月
  28. */
  29. class FStatsInefficientCar extends \app\common\models\EActiveRecord
  30. {
  31. /**
  32. * {@inheritdoc}
  33. */
  34. public static function tableName()
  35. {
  36. return '{{%f_stats_inefficient_car}}';
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function rules()
  42. {
  43. return [
  44. [['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'],
  45. [['ineff_per'], 'number'],
  46. [['city', 'sec_unit', 'grid'], 'string', 'max' => 255],
  47. ];
  48. }
  49. /**
  50. * {@inheritdoc}
  51. */
  52. public function attributeLabels()
  53. {
  54. return [
  55. 'id' => '序号',
  56. 'city' => '地市',
  57. 'sec_unit' => '二级单位',
  58. 'grid' => '网格',
  59. 'car_num' => '车辆数量',
  60. 'ineff_car' => '低效车辆数量',
  61. 'ineff_per' => '低效车占比',
  62. 'is_lt_5' => '是否低效占比小于0.05',
  63. 'mile_0' => '平均每日0公里',
  64. 'mile_0_10' => '平均每日0to10公里',
  65. 'mile_10_20' => '平均每日10to20公里',
  66. 'mile_20_30' => '平均每日20to30公里',
  67. 'mile_30_40' => '平均每日30to40公里',
  68. 'mile_40_50' => '平均每日40to50公里',
  69. 'atte_0' => '出勤率0',
  70. 'atte_0_20' => '出勤率0to20',
  71. 'atte_20_50' => '出勤率20to50',
  72. 'atte_50_80' => '出勤率50to80',
  73. 'atte_80' => '出勤率80以上',
  74. 'year' => '年',
  75. 'month' => '月',
  76. ];
  77. }
  78. }