HumanEnterpriseApplyModel.php 610 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\common\model;
  3. class HumanEnterpriseApplyModel extends BaseModel
  4. {
  5. // 设置表名
  6. protected $name = 'human_enterprise_apply';
  7. //自动完成
  8. protected $autoWriteTimestamp = true;
  9. protected $type = [
  10. 'cooperate' => 'array',
  11. 'images' => 'array',
  12. ];
  13. // 常量
  14. const STATUS = [1 => '待审核', 2 => '审核通过', 3 => '审核不通过'];
  15. const STATUS_WAIT = 1;
  16. const STATUS_PASS = 2;
  17. const STATUS_DISABLED = 3;
  18. public function getStatusTextAttr($value, $data)
  19. {
  20. return self::STATUS[$data['status']];
  21. }
  22. }