ExcelAddUser.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%EXCEL_ADD_USER}}".
  6. *
  7. * @property string $ID
  8. * @property string $EXCEL_IMPORT_ID 导入记录表ID
  9. * @property string $USER_NAME 用户名
  10. * @property string $DEC_LV 会员级别
  11. * @property string $REAL_NAME 会员姓名
  12. * @property string $ID_CARD 身份证
  13. * @property string $MOBILE 手机
  14. * @property string $TEL 电话
  15. * @property string $AREA_PROVINCE 省市
  16. * @property string $AREA_CITY 市区
  17. * @property string $AREA_COUNTY 区县
  18. * @property string $ADDRESS 地址
  19. * @property string $OPEN_BANK 开户银行
  20. * @property string $BANK_ADDRESS 开户行地址
  21. * @property string $BANK_NO 银行账号
  22. * @property string $BANK_PROVINCE 银行省市
  23. * @property string $BANK_CITY 银行市区
  24. * @property string $BANK_COUNTY 银行区县
  25. * @property string $SUB_COM 子公司
  26. * @property string $IS_DEC 是否报单中心
  27. * @property string $DEC_ROLE 报单中心级别
  28. * @property string $DEC_USER_NAME 所属报单中心编号
  29. * @property string $BIRTHDAY 生日
  30. * @property string $CON_USER_NAME 接点人
  31. * @property string $REC_USER_NAME 开拓人
  32. * @property string $LOCATION 区位
  33. * @property int $SORT 审核管理员ID
  34. * @property int $STATUS 审核管理员ID
  35. * @property string $ERROR_REMARK 审核管理员ID
  36. * @property int $CREATED_AT 创建时间
  37. */
  38. class ExcelAddUser extends \common\components\ActiveRecord
  39. {
  40. const STATUS_UN = 0; //未导入
  41. const STATUS_SUCCESS = 1; // 导入成功
  42. const STATUS_FAIL = 2; // 导入失败
  43. /**
  44. * {@inheritdoc}
  45. */
  46. public static function tableName()
  47. {
  48. return '{{%EXCEL_ADD_USER}}';
  49. }
  50. /**
  51. * {@inheritdoc}
  52. */
  53. public function rules()
  54. {
  55. return [
  56. [['EXCEL_IMPORT_ID', 'SORT', 'CREATED_AT'], 'required'],
  57. [['SORT', 'STATUS', 'CREATED_AT'], 'integer'],
  58. [['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],
  59. [['ERROR_REMARK'], 'string', 'max' => 4000],
  60. [['ID'], 'unique'],
  61. ];
  62. }
  63. /**
  64. * {@inheritdoc}
  65. */
  66. public function attributeLabels()
  67. {
  68. return [
  69. 'ID' => 'ID',
  70. 'EXCEL_IMPORT_ID' => '导入记录表ID',
  71. 'USER_NAME' => '用户名',
  72. 'DEC_LV' => '会员级别',
  73. 'REAL_NAME' => '会员姓名',
  74. 'ID_CARD' => '身份证',
  75. 'MOBILE' => '手机',
  76. 'TEL' => '电话',
  77. 'AREA_PROVINCE' => '省市',
  78. 'AREA_CITY' => '市区',
  79. 'AREA_COUNTY' => '区县',
  80. 'ADDRESS' => '地址',
  81. 'OPEN_BANK' => '开户银行',
  82. 'BANK_ADDRESS' => '开户行地址',
  83. 'BANK_NO' => '银行账号',
  84. 'BANK_PROVINCE' => '银行省市',
  85. 'BANK_CITY' => '银行市区',
  86. 'BANK_COUNTY' => '银行区县',
  87. 'SUB_COM' => '子公司',
  88. 'IS_DEC' => '是否报单中心',
  89. 'DEC_ROLE' => '报单中心级别',
  90. 'DEC_USER_NAME' => '所属报单中心编号',
  91. 'BIRTHDAY' => '生日',
  92. 'CON_USER_NAME' => '接点人',
  93. 'REC_USER_NAME' => '开拓人',
  94. 'LOCATION' => '区位',
  95. 'SORT' => '审核管理员ID',
  96. 'STATUS' => '审核管理员ID',
  97. 'ERROR_REMARK' => '审核管理员ID',
  98. 'CREATED_AT' => '创建时间',
  99. ];
  100. }
  101. }