ExcelRegInfo.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%EXCEL_REG_INFO}}".
  6. *
  7. * @property string $ID
  8. * @property string $EXCEL_IMPORT_ID 导入记录表ID
  9. * @property string $USER_NAME 会员编号
  10. * @property string $REAL_NAME 会员姓名
  11. * @property string $ID_CARD 身份证
  12. * @property string $REG_TYPE 注册类型
  13. * @property string $REG_NAME 注册名称
  14. * @property string $CREDIT_CODE 统一社会信用代码
  15. * @property string $PREMISES 经营场所
  16. * @property string $REG_EXPIRES 注册有效期
  17. * @property string $LEGAL_PERSON 法人
  18. * @property string $OPEN_NAME 企业开户银行
  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 $REMARK 备注
  26. * @property int $SORT 序号
  27. * @property int $STATUS 状态
  28. * @property string $ERROR_REMARK 错误备注
  29. * @property int $CREATED_AT 创建时间
  30. */
  31. class ExcelRegInfo extends \common\components\ActiveRecord
  32. {
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public static function tableName()
  37. {
  38. return '{{%EXCEL_REG_INFO}}';
  39. }
  40. /**
  41. * {@inheritdoc}
  42. */
  43. public function rules()
  44. {
  45. return [
  46. [['EXCEL_IMPORT_ID', 'SORT', 'CREATED_AT'], 'required'],
  47. [['SORT', 'STATUS', 'CREATED_AT'], 'integer'],
  48. [['ID', 'EXCEL_IMPORT_ID', 'USER_NAME', 'REAL_NAME', 'ID_CARD', 'REG_TYPE', 'BANK_NO', 'BANK_PROVINCE', 'BANK_CITY', 'BANK_COUNTY'], 'string', 'max' => 32],
  49. [['REG_NAME', 'CREDIT_CODE', 'PREMISES', 'REG_EXPIRES', 'LEGAL_PERSON', 'OPEN_NAME', 'OPEN_BANK', 'BANK_ADDRESS'], 'string', 'max' => 255],
  50. [['REMARK', 'ERROR_REMARK'], 'string', 'max' => 4000],
  51. [['ID'], 'unique'],
  52. ];
  53. }
  54. /**
  55. * {@inheritdoc}
  56. */
  57. public function attributeLabels()
  58. {
  59. return [
  60. 'ID' => 'ID',
  61. 'EXCEL_IMPORT_ID' => '导入记录表ID',
  62. 'USER_NAME' => '会员编号',
  63. 'REAL_NAME' => '会员姓名',
  64. 'ID_CARD' => '身份证',
  65. 'REG_TYPE' => '注册类型',
  66. 'REG_NAME' => '注册名称',
  67. 'CREDIT_CODE' => '统一社会信用代码',
  68. 'PREMISES' => '经营场所',
  69. 'REG_EXPIRES' => '注册有效期',
  70. 'LEGAL_PERSON' => '法人',
  71. 'OPEN_NAME' => '企业开户银行',
  72. 'OPEN_BANK' => '企业开户银行',
  73. 'BANK_ADDRESS' => '企业开户行地址',
  74. 'BANK_NO' => '企业银行账号',
  75. 'BANK_PROVINCE' => '企业银行省市',
  76. 'BANK_CITY' => '企业银行市区',
  77. 'BANK_COUNTY' => '企业银行区县',
  78. 'REMARK' => '备注',
  79. 'SORT' => '序号',
  80. 'STATUS' => '状态',
  81. 'ERROR_REMARK' => '错误备注',
  82. 'CREATED_AT' => '创建时间',
  83. ];
  84. }
  85. }