ProvinceJob.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. namespace addons\RfDevTool\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addon_dev_tool_province_job}}".
  6. *
  7. * @property string $id
  8. * @property string $year 年份
  9. * @property int $max_level 数据级别
  10. * @property int $message_id 消息id
  11. * @property int $status 状态
  12. * @property string $created_at 创建时间
  13. * @property string $updated_at 更新时间
  14. */
  15. class ProvinceJob extends \common\models\base\BaseModel
  16. {
  17. /**
  18. * @var array
  19. */
  20. public static $maxLevelExplain = [
  21. 1 => '省',
  22. 2 => '省·市',
  23. 3 => '省·市·区(县)',
  24. 4 => '省·市·区(县)·街道(乡镇)',
  25. 5 => '省·市·区(县)·街道(乡镇)·社区(村)',
  26. ];
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public static function tableName()
  31. {
  32. return '{{%addon_dev_tool_province_job}}';
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function rules()
  38. {
  39. return [
  40. [['year', 'max_level', 'message_id', 'status', 'created_at', 'updated_at'], 'integer'],
  41. ];
  42. }
  43. /**
  44. * {@inheritdoc}
  45. */
  46. public function attributeLabels()
  47. {
  48. return [
  49. 'id' => 'ID',
  50. 'year' => '年份',
  51. 'max_level' => '数据级别',
  52. 'message_id' => '队列消息ID',
  53. 'status' => '状态',
  54. 'created_at' => '创建时间',
  55. 'updated_at' => 'Updated At',
  56. ];
  57. }
  58. }
粤ICP备19079148号