building-sign/app/model/PayMonthLog.php

34 lines
703 B
PHP
Raw Permalink Normal View History

2023-01-09 08:41:41 +00:00
<?php
namespace app\model;
use think\model\relation\HasOne;
/**
* 薪资按月统计 所有数据都基于pay_log计算而来
* 仅统计上月(含上月)以前
*
* Class PayMonthLog
* @package app\model
*/
class PayMonthLog extends Base
{
public const STATUS_YES = 1;
public const STATUS_NO = 0;
public const STATUS_PART = 2;
public static function statusText(): array
{
return [
self::STATUS_YES => '已发放',
self::STATUS_NO => '待发放',
self::STATUS_PART => '部分发放',
];
}
2023-01-09 08:41:41 +00:00
public function account(): HasOne
{
return $this->hasOne(Account::class, 'id', 'account_id');
}
}