quanwei
2025-11-28 3ea53e61cc23fdb3ddf8b38a199ca60a6da8c407
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
 
 
namespace app\common\model\branch;
 
use app\common\model\BaseModel;
/**
 * 退押金申请模型
 */
class DepositRefund extends BaseModel
{
    protected $pk = 'deposit_refund_id';
    protected $name = 'branch_deposit_refund';
    /**
     * 关联供应商表
     */
    public function branch()
    {
        return $this->belongsTo('app\\common\\model\\branch\\Branch', 'branch_id', 'branch_id');
    }
     /**
     * 详情
     */
    public static function detail($id)
    {
        return (new static())->find($id);
    }
    /**
     * 审核时间
     */
    public function getAuditTimeAttr($value, $data)
    {
        $text = $data['audit_time']?date('Y-m-d H:i:s',$value):'';
        return ['text' => $text, 'value' => $value];
    }
}