HumanEnterpriseApplyModel.php 581 B

1234567891011121314151617181920212223242526272829
  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. ];
  12. // 常量
  13. const STATUS = [1 => '待审核', 2 => '审核通过', 3 => '审核不通过'];
  14. const STATUS_WAIT = 1;
  15. const STATUS_PASS = 2;
  16. const STATUS_DISABLED = 3;
  17. public function getStatusTextAttr($value, $data)
  18. {
  19. return self::STATUS[$data['status']];
  20. }
  21. }