29 lines
546 B
PHP
29 lines
546 B
PHP
|
<?php
|
||
|
|
||
|
namespace app\model;
|
||
|
|
||
|
use think\model\relation\HasOne;
|
||
|
|
||
|
/**
|
||
|
* 离职日志
|
||
|
*
|
||
|
* Class OvertimeLog
|
||
|
* @package app\model
|
||
|
*/
|
||
|
class AccountDimission extends Base
|
||
|
{
|
||
|
public const STATUS_NORMAL = 0;//待审核
|
||
|
public const STATUS_YES = 1;//通过
|
||
|
public const STATUS_NO = -1;//拒绝
|
||
|
|
||
|
public function account(): HasOne
|
||
|
{
|
||
|
return $this->hasOne(Account::class, 'id', 'account_id');
|
||
|
}
|
||
|
|
||
|
public function worksite(): HasOne
|
||
|
{
|
||
|
return $this->hasOne(Worksite::class, 'id', 'worksite_id');
|
||
|
}
|
||
|
}
|