123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace app\modules\car\models;
- use Yii;
- /**
- * This is the model class for table "{{%f_mileage_attend}}".
- *
- * @property int $id 序号
- * @property int $car_id 外键关联f_car_infor(car_id)
- * @property float|null $mileage 行驶里程
- * @property int|null $attend_days 出勤天数
- * @property float|null $av_daily_mileage 日均行驶里程
- * @property float|null $attend_rate 出勤率
- * @property int|null $year 年
- * @property int|null $month 月
- */
- class FMileageAttend extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%f_mileage_attend}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['car_id'], 'required'],
- [['car_id', 'attend_days', 'year', 'month'], 'integer'],
- [['mileage', 'av_daily_mileage', 'attend_rate'], 'number'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => '序号',
- 'car_id' => '外键关联f_car_infor(car_id)',
- 'mileage' => '行驶里程',
- 'attend_days' => '出勤天数',
- 'av_daily_mileage' => '日均行驶里程',
- 'attend_rate' => '出勤率',
- 'year' => '年',
- 'month' => '月',
- ];
- }
- }
|