You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
1.4 KiB

  1. <?php
  2. namespace backend\modules\hotel\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "hotel_price_conversion".
  6. *
  7. * @property integer $hotel_id
  8. * @property double $remain_room_conversion
  9. * @property double $breakfast_conversion
  10. * @property double $cancel_rules_conversion
  11. * @property double $pay_type_conversion
  12. */
  13. class HotelPriceConversion extends \yii\db\ActiveRecord
  14. {
  15. /**
  16. * @inheritdoc
  17. */
  18. public static function tableName()
  19. {
  20. return 'hotel_price_conversion';
  21. }
  22. /**
  23. * @inheritdoc
  24. */
  25. public function rules()
  26. {
  27. return [
  28. [['hotel_id', 'remain_room_conversion', 'breakfast_conversion', 'cancel_rules_conversion', 'pay_type_conversion'], 'required'],
  29. [['hotel_id'], 'integer'],
  30. [['remain_room_conversion', 'breakfast_conversion', 'cancel_rules_conversion', 'pay_type_conversion'], 'number'],
  31. ];
  32. }
  33. /**
  34. * @inheritdoc
  35. */
  36. public function attributeLabels()
  37. {
  38. return [
  39. 'hotel_id' => '酒店ID',
  40. 'remain_room_conversion' => '保留房',//价格折算(保留房-非保留房)
  41. 'breakfast_conversion' => '早餐',//价格折算(每个早餐的价格)
  42. 'cancel_rules_conversion' => '取消规则',//价格折算(免费取消-不可取消)
  43. 'pay_type_conversion' => '支付方式',//价格折算(保留房-非保留房)(现付-预付)
  44. ];
  45. }
  46. }