| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <?php
- namespace common\models;
- use Yii;
- use common\libs\logging\operate\valueType\Config as ValueTypeConfig;
- /**
- * This is the model class for table "{{%CF_LX_AUDIT}}".
- *
- * @property string $ID
- * @property string $USER_ID
- * @property string $CF 车房养老
- * @property string $LX 领袖分红
- * @property int $YEAR 类型
- * @property int $AUDIT_STATUS 审核状态
- * @property string $CREATE_ADMIN 创建管理员
- * @property string $AUDIT_ADMIN 审核管理员
- * @property string $CREATE_REMARK 申请备注
- * @property string $AUDIT_REMARK 审核备注
- * @property int $CREATED_AT 创建时间
- * @property int $AUDITED_AT 审核时间
- */
- class CFLXAudit extends \common\components\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%CF_LX_AUDIT}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['YEAR', 'AUDIT_STATUS', 'CREATED_AT', 'AUDITED_AT'], 'integer'],
- [['CREATE_ADMIN', 'CREATED_AT', 'USER_ID'], 'required'],
- [['CF','LX'], 'number'],
- [['ID', 'USER_ID', 'CREATE_ADMIN', 'AUDIT_ADMIN'], 'string', 'max' => 32],
- [['CREATE_REMARK', 'AUDIT_REMARK'], 'string', 'max' => 4000],
- [['ID'], 'unique'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'ID' => 'ID',
- 'USER_ID' => '用户ID',
- 'LX' => '车房养老',
- 'CF' => '领袖分红',
- 'YEAR' => '年',
- 'AUDIT_STATUS' => '审核状态',
- 'CREATE_ADMIN' => '创建管理员',
- 'AUDIT_ADMIN' => '审核管理员',
- 'CREATE_REMARK' => '申请备注',
- 'AUDIT_REMARK' => '审核备注',
- 'CREATED_AT' => '创建时间',
- 'AUDITED_AT' => '审核时间',
- ];
- }
- /**
- * 操作日志记录条件
- * @return array
- */
- public function attrLabelsWithLogType(){
- return [
- 'USER_ID' => '会员ID',
- 'CF' => '车房养老',
- 'LX' => '领袖分红',
- 'AUDIT_STATUS' => [
- 'label' => '审核状态',
- 'type' => ValueTypeConfig::AUDIT_STATUS_TYPE,
- ],
- 'CREATE_ADMIN' => [
- 'label' => '申请管理员',
- 'type' => ValueTypeConfig::ADMIN_TYPE,
- ],
- 'AUDIT_ADMIN' => [
- 'label' => '审核管理员',
- 'type' => ValueTypeConfig::ADMIN_TYPE,
- ],
- 'CREATE_REMARK' => '备注',
- 'CREATED_AT' => [
- 'label' => '申请时间',
- 'type' => ValueTypeConfig::DATE_TIME_TYPE,
- ],
- 'AUDITED_AT' => [
- 'label' => '审核时间',
- 'type' => ValueTypeConfig::DATE_TIME_TYPE,
- ],
- ];
- }
- }
|