| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhMerchantCapital".
- *
- * @property int $id
- * @property string $relateId 关联id
- * @property int $capitalType 流水订单的类型 参考configDict capitalType
- * @property string $balance 余额
- * @property int $affectBalance 是否影响商家的可提现余额 0不影响 1影响,如支付宝支付,提现
- * @property string $amount 本次流水金额
- * @property int $io 收支类型 0支出 1收入 2其它
- * @property string $totalIncome 累计收入变化
- * @property string $totalExpend 累计支出变化
- * @property int $payWay 资金收支方式0微信1支付宝2余额3现金,具体请查看配置文件configDict payWay
- * @property string $event 事项,说明,类型的具体解释
- * @property int $merchantId 商家id
- * @property int $userId 用户id
- * @property string $userName 用户名
- * @property string $alipayId 支付宝的uid
- * @property int $operateId 操作人 adminId userId merchantId
- * @property string $remark 备注
- * @property int $addTime 添加时间,时间戳格式
- * @property string $createTime 创建时间
- * @property string $updateTime
- */
- class xhMerchantCapital extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhMerchantCapital';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['capitalType', 'affectBalance', 'io', 'payWay', 'merchantId', 'userId', 'shopId', 'operateId', 'addTime'], 'integer'],
- [['balance', 'amount', 'totalIncome', 'totalExpend'], 'number'],
- [['createTime'], 'required'],
- [['createTime', 'updateTime'], 'safe'],
- [['relateId'], 'string', 'max' => 100],
- [['event', 'userName', 'alipayId'], 'string', 'max' => 50],
- [['remark'], 'string', 'max' => 500],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'relateId' => 'Relate ID',
- 'capitalType' => 'Capital Type',
- 'balance' => 'Balance',
- 'affectBalance' => 'Affect Balance',
- 'amount' => 'Amount',
- 'io' => 'Io',
- 'totalIncome' => 'Total Income',
- 'totalExpend' => 'Total Expend',
- 'payWay' => 'Pay Way',
- 'event' => 'Event',
- 'merchantId' => 'Merchant ID',
- 'userId' => 'User ID',
- 'userName' => 'User Name',
- 'alipayId' => 'Alipay ID',
- 'operateId' => 'Operate ID',
- 'remark' => 'Remark',
- 'shopId' => 'shopId',
- 'addTime' => 'Add Time',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|