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