HumanInstitutionApplyModel.php 519 B

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