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.
 
 
 
 
 
 

64 lines
1.9 KiB

  1. <?php
  2. namespace backend\modules\hotel\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "order_ht_apply_bounce".
  6. *
  7. * @property integer $ID
  8. * @property integer $ORDER_ID
  9. * @property string $REFUND_AMOUNT
  10. * @property string $ORG_BACK
  11. * @property string $REASON
  12. * @property integer $CANCEL_FLAG
  13. * @property integer $CREATE_USER_ID
  14. * @property string $CREATE_TIME
  15. * @property integer $UPDATE_USER_ID
  16. * @property string $UPDATE_TIME
  17. */
  18. class OrderHtApplyBounce extends \yii\db\ActiveRecord
  19. {
  20. /**
  21. * @inheritdoc
  22. */
  23. public static function tableName()
  24. {
  25. return 'order_ht_apply_bounce';
  26. }
  27. /**
  28. * @inheritdoc
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['ORDER_ID', 'REASON', 'CREATE_USER_ID', 'CREATE_TIME', 'UPDATE_USER_ID', 'UPDATE_TIME'], 'required'],
  34. [['ORDER_ID', 'CANCEL_FLAG', 'CREATE_USER_ID', 'UPDATE_USER_ID'], 'integer'],
  35. [['REFUND_AMOUNT', 'ORG_BACK'], 'number'],
  36. [['REASON'], 'string'],
  37. [['CREATE_TIME', 'UPDATE_TIME'], 'string', 'max' => 20],
  38. ];
  39. }
  40. /**
  41. * @inheritdoc
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'ID' => Yii::t('app', 'ID'),
  47. 'ORDER_ID' => Yii::t('app', '订单ID,ORDER_MAIN.ORDER_ID'),
  48. 'REFUND_AMOUNT' => Yii::t('app', '退款金额'),
  49. 'ORG_BACK' => Yii::t('app', '供应商退回'),
  50. 'REASON' => Yii::t('app', '退改原因'),
  51. 'CANCEL_FLAG' => Yii::t('app', '记录有效性标记,CANCEL_FLAG=0记录有效;CANCEL_FLAG=1,记录已删除'),
  52. 'CREATE_USER_ID' => Yii::t('app', '记录创建用户ID'),
  53. 'CREATE_TIME' => Yii::t('app', '记录创建时间'),
  54. 'UPDATE_USER_ID' => Yii::t('app', '记录最后更新用户ID'),
  55. 'UPDATE_TIME' => Yii::t('app', '记录最后更新时间'),
  56. ];
  57. }
  58. }