ExcelImport.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%EXCEL_IMPORT}}".
  6. *
  7. * @property string $ID
  8. * @property string $OPTION_NAME 业务名称
  9. * @property string $TABLE_NAME 对应的待导入数据表名
  10. * @property string $UPLOAD_ID 上传文件ID
  11. * @property int $AUDIT_STATUS 审核状态
  12. * @property string $IMPORT_ADMIN_ID 导入管理员ID
  13. * @property string $AUDIT_ADMIN_ID 审核管理员ID
  14. * @property int $CREATED_AT 创建时间
  15. * @property int $AUDITED_AT 审核时间
  16. */
  17. class ExcelImport extends \common\components\ActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return '{{%EXCEL_IMPORT}}';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['OPTION_NAME', 'IMPORT_ADMIN_ID', 'CREATED_AT'], 'required'],
  33. [['AUDIT_STATUS', 'CREATED_AT', 'AUDITED_AT'], 'integer'],
  34. [['ID', 'OPTION_NAME', 'TABLE_NAME', 'UPLOAD_ID', 'IMPORT_ADMIN_ID', 'AUDIT_ADMIN_ID'], 'string', 'max' => 32],
  35. [['ID'], 'unique'],
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'ID' => 'ID',
  45. 'OPTION_NAME' => '业务名称',
  46. 'TABLE_NAME' => '对应的待导入数据表名',
  47. 'UPLOAD_ID' => '上传文件ID',
  48. 'AUDIT_STATUS' => '审核状态',
  49. 'IMPORT_ADMIN_ID' => '导入管理员ID',
  50. 'AUDIT_ADMIN_ID' => '审核管理员ID',
  51. 'CREATED_AT' => '创建时间',
  52. 'AUDITED_AT' => '审核时间',
  53. ];
  54. }
  55. }