FStatsCostAvg.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. namespace app\modules\car\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%f_stats_cost_avg}}".
  6. *
  7. * @property int $id 序号
  8. * @property string|null $city 地市
  9. * @property string|null $dpt_sec 二级单位
  10. * @property string|null $grid 网格
  11. * @property string|null $car_type 车辆类型
  12. * @property int|null $car_num 车辆数量
  13. * @property string|null $using_tag 车辆性质
  14. * @property float|null $fee_avg 单车费用平均值
  15. * @property float|null $driv_avg 单车运行费用平均值
  16. * @property float|null $oil_avg 单车油料费平均值
  17. * @property float|null $insu_avg 单车保险费平均值
  18. * @property float|null $main_avg 单车维修费用平均值
  19. * @property float|null $rb_avg 单车路桥费平均值
  20. * @property float|null $rent_avg 单车租赁费平均值
  21. * @property float|null $yc_avg 单车年检费平均值
  22. * @property float|null $other_avg 单车其他费用平均值
  23. * @property int|null $year 年
  24. * @property int|null $month 月
  25. */
  26. class FStatsCostAvg extends \app\common\models\EActiveRecord
  27. {
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public static function tableName()
  32. {
  33. return '{{%f_stats_cost_avg}}';
  34. }
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function rules()
  39. {
  40. return [
  41. [['car_num', 'year', 'month'], 'integer'],
  42. [['fee_avg', 'driv_avg', 'oil_avg', 'insu_avg', 'main_avg', 'rb_avg', 'rent_avg', 'yc_avg', 'other_avg'], 'number'],
  43. [['city', 'dpt_sec', 'grid', 'car_type', 'using_tag'], 'string', 'max' => 255],
  44. ];
  45. }
  46. /**
  47. * {@inheritdoc}
  48. */
  49. public function attributeLabels()
  50. {
  51. return [
  52. 'id' => '序号',
  53. 'city' => '地市',
  54. 'dpt_sec' => ' 二级单位',
  55. 'grid' => '网格',
  56. 'car_type' => '车辆类型',
  57. 'car_num' => '车辆数量',
  58. 'using_tag' => '车辆性质',
  59. 'fee_avg' => '单车费用平均值',
  60. 'driv_avg' => '单车运行费用平均值',
  61. 'oil_avg' => '单车油料费平均值',
  62. 'insu_avg' => '单车保险费平均值',
  63. 'main_avg' => '单车维修费用平均值',
  64. 'rb_avg' => '单车路桥费平均值',
  65. 'rent_avg' => '单车租赁费平均值',
  66. 'yc_avg' => '单车年检费平均值',
  67. 'other_avg' => '单车其他费用平均值',
  68. 'year' => '年',
  69. 'month' => '月',
  70. ];
  71. }
  72. }