12345678910111213141516171819202122232425 |
- <?php
- namespace app\common\model;
- class HumanInstitutionApplyModel extends BaseModel
- {
- // 设置表名
- protected $name = 'human_institution_apply';
- //自动完成
- protected $autoWriteTimestamp = true;
- // 常量
- const STATUS = [1 => '待审核', 2 => '审核通过', 3 => '审核不通过'];
- const STATUS_WAIT = 1;
- const STATUS_PASS = 2;
- const STATUS_DISABLED = 3;
- public function getStatusTextAttr($value, $data)
- {
- return self::STATUS[$data['status']];
- }
- }
|