24 lines
		
	
	
		
			421 B
		
	
	
	
		
			PHP
		
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			421 B
		
	
	
	
		
			PHP
		
	
	
<?php
 | 
						|
 | 
						|
namespace app\model;
 | 
						|
 | 
						|
use think\model\relation\HasOne;
 | 
						|
 | 
						|
/**
 | 
						|
 * 加班日志
 | 
						|
 *
 | 
						|
 * Class OvertimeLog
 | 
						|
 * @package app\model
 | 
						|
 */
 | 
						|
class OvertimeLog 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');
 | 
						|
    }
 | 
						|
}
 |