|
|
@@ -1,28 +1,7 @@
|
|
|
<?php
|
|
|
namespace bizMall\user\models;
|
|
|
use bizMall\base\models\Base;
|
|
|
-/**
|
|
|
- * This is the model class for table "xhUserIntegral".
|
|
|
- *
|
|
|
- * @property int $id
|
|
|
- * @property int $userId
|
|
|
- * @property string $userName 用户名
|
|
|
- * @property string $alipayId 支付宝的uid
|
|
|
- * @property int $sjId 商家id
|
|
|
- * @property string $relateId 关联id
|
|
|
- * @property string $amount 涉及金额
|
|
|
- * @property int $integral 剩余可兑换积分
|
|
|
- * @property int $num 积分数量
|
|
|
- * @property int $io 收支类型0收入 1支出
|
|
|
- * @property int $payWay 资金收支方式0微信1支付宝2余额3现金,具体请查看配置文件configDict payWay
|
|
|
- * @property int $capitalType 流水订单的类型 参考configDict capitalType
|
|
|
- * @property string $event 原由,事项,解释
|
|
|
- * @property int $operatorId 操作人,adminId
|
|
|
- * @property string $remark 备注
|
|
|
- * @property int $addTime 添加时间,时间戳格式
|
|
|
- * @property string $createTime 创建时间
|
|
|
- * @property string $updateTime
|
|
|
- */
|
|
|
+
|
|
|
class UserIntegral extends Base
|
|
|
{
|
|
|
/**
|
|
|
@@ -39,14 +18,13 @@ class UserIntegral extends Base
|
|
|
public function rules()
|
|
|
{
|
|
|
return [
|
|
|
- [['userId', 'sjId', 'integral', 'num', 'io', 'payWay', 'capitalType', 'operatorId', 'addTime'], 'integer'],
|
|
|
- [['amount'], 'number'],
|
|
|
- [['capitalType', 'createTime'], 'required'],
|
|
|
- [['createTime', 'updateTime'], 'safe'],
|
|
|
- [['userName', 'alipayId'], 'string', 'max' => 50],
|
|
|
- [['relateId'], 'string', 'max' => 100],
|
|
|
- [['event'], 'string', 'max' => 200],
|
|
|
- [['remark'], 'string', 'max' => 1000],
|
|
|
+ [['userId', 'relateId', 'relateType', 'operatorId'], 'integer'],
|
|
|
+ [['integral', 'num', 'amount'], 'number'],
|
|
|
+ //[['capitalType', 'createTime'], 'required'],
|
|
|
+ [['createTime', 'updateTime'], 'safe'],
|
|
|
+ [['userName', 'alipayId'], 'string', 'max' => 50],
|
|
|
+ [['event'], 'string', 'max' => 200],
|
|
|
+ [['remark'], 'string', 'max' => 1000],
|
|
|
];
|
|
|
}
|
|
|
|
|
|
@@ -56,24 +34,18 @@ class UserIntegral extends Base
|
|
|
public function attributeLabels()
|
|
|
{
|
|
|
return [
|
|
|
- 'id' => 'ID',
|
|
|
- 'userId' => 'User ID',
|
|
|
- 'userName' => 'User Name',
|
|
|
- 'alipayId' => 'Alipay ID',
|
|
|
- 'sjId' => 'Merchant ID',
|
|
|
- 'relateId' => 'Relate ID',
|
|
|
- 'amount' => 'Amount',
|
|
|
- 'integral' => 'Integral',
|
|
|
- 'num' => 'Num',
|
|
|
- 'io' => 'Io',
|
|
|
- 'payWay' => 'Pay Way',
|
|
|
- 'capitalType' => 'Capital Type',
|
|
|
- 'event' => 'Event',
|
|
|
- 'operatorId' => 'Operator ID',
|
|
|
- 'remark' => 'Remark',
|
|
|
- 'addTime' => 'Add Time',
|
|
|
- 'createTime' => 'Create Time',
|
|
|
- 'updateTime' => 'Update Time',
|
|
|
+ 'id' => 'ID',
|
|
|
+ 'userId' => 'User ID',
|
|
|
+ 'userName' => 'User Name',
|
|
|
+ 'relateId' => 'Relate ID',
|
|
|
+ 'amount' => 'Amount',
|
|
|
+ 'integral' => 'Integral',
|
|
|
+ 'num' => 'Num',
|
|
|
+ 'event' => 'Event',
|
|
|
+ 'operatorId' => 'Operator ID',
|
|
|
+ 'remark' => 'Remark',
|
|
|
+ 'createTime' => 'Create Time',
|
|
|
+ 'updateTime' => 'Update Time',
|
|
|
];
|
|
|
}
|
|
|
}
|