| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?php
- namespace app\models;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "{{%wechat_intracity_balance_log}}".
- *
- * @property integer $id
- * @property integer $md_id
- * @property integer $flow_type
- * @property number $pay_order_id
- * @property string $service_trans_prefer
- * @property number $pay_amount
- * @property integer $pay_time
- * @property string $pay_status
- * @property integer $create_time
- * @property integer $consume_deadline
- * @property integer $refund_time
- * @property number $refund_amount
- * @property string $refund_status
- * @property number $deduct_amount
- * @property integer $bill_id
- * @property integer $delivery_finished_time
- * @property string $wx_order_id
- * @property string $openid
- * @property string $delivery_status
- */
- class WechatIntracityBalanceLog extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%wechat_intracity_balance_log}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['id', 'md_id', 'flow_type', 'pay_time', 'create_time', 'consume_deadline', 'refund_time', 'bill_id', 'delivery_finished_time'], 'integer'],
- [['pay_order_id', 'pay_amount', 'refund_amount', 'deduct_amount'], 'number'],
- [[ 'service_trans_prefer', 'pay_status', 'refund_status', 'wx_order_id', 'openid', 'delivery_status'], 'string'],
- ];
- }
- // public function behaviors()
- // {
- // return [
- // [
- // 'class' => TimestampBehavior::class,
- // ]
- // ];
- // }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => '',
- 'md_id' => '门店id',
- 'flow_type' => '流水类型 1:充值流水,2:消费流水,3:退款流水',
- 'pay_order_id' => '充值订单号',
- 'service_trans_prefer' => '运力ID',
- 'pay_amount' => '支付金额',
- 'pay_time' => '支付时间',
- 'pay_status' => '支付状态 FAIL:支付失败 SUCCESS:支付成功',
- 'create_time' => '订单创建时间',
- 'consume_deadline' => '有效截止日期',
- 'refund_time' => '退款时间',
- 'refund_amount' => '退款金额',
- 'refund_status' => '退款状态 PROCESSING:退款处理中 SUCCESS:退款成功',
- 'deduct_amount' => '扣除违约金',
- 'bill_id' => '运单ID',
- 'delivery_finished_time' => '运单完成配送的时间',
- ];
- }
- }
|