123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?php
- namespace app\modules\car\models;
- use Yii;
- /**
- * This is the model class for table "{{%f_one_car_one_table}}".
- *
- * @property int $id
- * @property int $card_id 外键关联f_car_infor(car_id)
- * @property float|null $current_mileage 当前里程
- * @property string|null $car_status 车况
- * @property int|null $year_info 数据年份
- * @property int|null $month_info 数据月份
- * @property float|null $oil_costs 当月油费
- * @property float|null $repair_costs 当月维修费
- * @property float|null $road_bridge_costs 当月路桥费
- * @property float|null $rent_costs 当月租赁费
- * @property float|null $insurance_costs 当月保险费
- * @property float|null $year_check_costs 当月年检费
- * @property float|null $other_costs 当月其他费用
- * @property float|null $sum_costs 当月总费用
- * @property float|null $sum_mileage 当月总行驶里程
- * @property float|null $attendance 当月出勤率
- * @property int|null $is_inefficient 是否低效
- * @property float|null $oil_per_km 当月每公里油费
- * @property float|null $repair_per_km 当月每公里维修费
- * @property float|null $sum_costs_per_km 当月每公里总费用
- * @property int|null $violations_times 当月违规次数
- */
- class FOneCarOneTable extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%f_one_car_one_table}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['car_id'], 'required'],
- [['car_id', 'year_info', 'month_info', 'is_inefficient', 'violations_times'], 'integer'],
- [['current_mileage', 'oil_costs', 'repair_costs', 'road_bridge_costs', 'rent_costs', 'insurance_costs', 'year_check_costs', 'other_costs', 'sum_costs', 'sum_mileage', 'attendance', 'oil_per_km', 'repair_per_km', 'sum_costs_per_km'], 'number'],
- [['car_status'], 'string', 'max' => 63],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'car_id' => '外键关联f_car_infor(car_id)',
- 'current_mileage' => '当前里程',
- 'car_status' => '车况',
- 'year_info' => '数据年份',
- 'month_info' => '数据月份',
- 'oil_costs' => '当月油费',
- 'repair_costs' => '当月维修费',
- 'road_bridge_costs' => '当月路桥费',
- 'rent_costs' => '当月租赁费',
- 'insurance_costs' => '当月保险费',
- 'year_check_costs' => '当月年检费',
- 'other_costs' => '当月其他费用',
- 'sum_costs' => '当月总费用',
- 'sum_mileage' => '当月总行驶里程',
- 'attendance' => '当月出勤率',
- 'is_inefficient' => '是否低效',
- 'oil_per_km' => '当月每公里油费',
- 'repair_per_km' => '当月每公里维修费',
- 'sum_costs_per_km' => '当月每公里总费用',
- 'violations_times' => '当月违规次数',
- ];
- }
- }
|