|
- <?php
-
- namespace backend\modules\hotel\models;
-
- use Yii;
-
- /**
- * This is the model class for table "order_finance_status".
- *
- * @property integer $order_id
- * @property integer $main_corp_id
- * @property integer $gathering_status
- * @property integer $payment_status
- * @property string $gathering_batch_id
- * @property string $update_time
- * @property string $payment_batch_id
- * @property integer $type
- */
- class OrderFinanceStatus extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'order_finance_status';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['order_id', 'type'], 'required'],
- [['order_id', 'main_corp_id', 'gathering_status', 'payment_status', 'type'], 'integer'],
- [['update_time'], 'safe'],
- [['gathering_batch_id', 'payment_batch_id'], 'string', 'max' => 20],
- [['order_id', 'type'], 'unique', 'targetAttribute' => ['order_id', 'type'], 'message' => 'The combination of 订单ID and 1订单 2线路班次(空车) has already been taken.'],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'order_id' => '订单ID',
- 'main_corp_id' => '运营主题ID',
- 'gathering_status' => '财务管理,收账状态 1待结算,2已关账,3对账中,4已结算',
- 'payment_status' => '财务管理,应付状态 1待结算,2已关账,3对账中,4已结算',
- 'gathering_batch_id' => '应收对账批次ID',
- 'update_time' => '最后更新时间',
- 'payment_batch_id' => '应付 对账 批次ID',
- 'type' => '1订单 2线路班次(空车)',
- ];
- }
- }
|