| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "{{%EXCEL_ADD_USER}}".
- *
- * @property string $ID
- * @property string $EXCEL_IMPORT_ID 导入记录表ID
- * @property string $USER_NAME 用户名
- * @property string $DEC_LV 会员级别
- * @property string $REAL_NAME 会员姓名
- * @property string $ID_CARD 身份证
- * @property string $MOBILE 手机
- * @property string $TEL 电话
- * @property string $AREA_PROVINCE 省市
- * @property string $AREA_CITY 市区
- * @property string $AREA_COUNTY 区县
- * @property string $ADDRESS 地址
- * @property string $OPEN_BANK 开户银行
- * @property string $BANK_ADDRESS 开户行地址
- * @property string $BANK_NO 银行账号
- * @property string $BANK_PROVINCE 银行省市
- * @property string $BANK_CITY 银行市区
- * @property string $BANK_COUNTY 银行区县
- * @property string $SUB_COM 子公司
- * @property string $IS_DEC 是否报单中心
- * @property string $DEC_ROLE 报单中心级别
- * @property string $DEC_USER_NAME 所属报单中心编号
- * @property string $BIRTHDAY 生日
- * @property string $CON_USER_NAME 接点人
- * @property string $REC_USER_NAME 开拓人
- * @property string $LOCATION 区位
- * @property int $SORT 审核管理员ID
- * @property int $STATUS 审核管理员ID
- * @property string $ERROR_REMARK 审核管理员ID
- * @property int $CREATED_AT 创建时间
- */
- class ExcelAddUser extends \common\components\ActiveRecord
- {
- const STATUS_UN = 0; //未导入
- const STATUS_SUCCESS = 1; // 导入成功
- const STATUS_FAIL = 2; // 导入失败
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%EXCEL_ADD_USER}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['EXCEL_IMPORT_ID', 'SORT', 'CREATED_AT'], 'required'],
- [['SORT', 'STATUS', 'CREATED_AT'], 'integer'],
- [['ID', 'EXCEL_IMPORT_ID', 'USER_NAME', 'DEC_LV', 'REAL_NAME', 'ID_CARD', 'MOBILE', 'TEL', 'AREA_PROVINCE', 'AREA_CITY', 'AREA_COUNTY', 'ADDRESS', 'OPEN_BANK', 'BANK_ADDRESS', 'BANK_NO', 'BANK_PROVINCE', 'BANK_CITY', 'BANK_COUNTY', 'SUB_COM', 'IS_DEC', 'DEC_ROLE', 'DEC_USER_NAME', 'BIRTHDAY', 'CON_USER_NAME', 'REC_USER_NAME', 'LOCATION'], 'string', 'max' => 32],
- [['ERROR_REMARK'], 'string', 'max' => 4000],
- [['ID'], 'unique'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'ID' => 'ID',
- 'EXCEL_IMPORT_ID' => '导入记录表ID',
- 'USER_NAME' => '用户名',
- 'DEC_LV' => '会员级别',
- 'REAL_NAME' => '会员姓名',
- 'ID_CARD' => '身份证',
- 'MOBILE' => '手机',
- 'TEL' => '电话',
- 'AREA_PROVINCE' => '省市',
- 'AREA_CITY' => '市区',
- 'AREA_COUNTY' => '区县',
- 'ADDRESS' => '地址',
- 'OPEN_BANK' => '开户银行',
- 'BANK_ADDRESS' => '开户行地址',
- 'BANK_NO' => '银行账号',
- 'BANK_PROVINCE' => '银行省市',
- 'BANK_CITY' => '银行市区',
- 'BANK_COUNTY' => '银行区县',
- 'SUB_COM' => '子公司',
- 'IS_DEC' => '是否报单中心',
- 'DEC_ROLE' => '报单中心级别',
- 'DEC_USER_NAME' => '所属报单中心编号',
- 'BIRTHDAY' => '生日',
- 'CON_USER_NAME' => '接点人',
- 'REC_USER_NAME' => '开拓人',
- 'LOCATION' => '区位',
- 'SORT' => '审核管理员ID',
- 'STATUS' => '审核管理员ID',
- 'ERROR_REMARK' => '审核管理员ID',
- 'CREATED_AT' => '创建时间',
- ];
- }
- }
|