quanwei
2025-12-31 48d31672b4d88900080093cd1632f9d2eb978d4d
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
37
<?php
 
 
namespace app\common\model\supplier;
 
use app\common\model\BaseModel;
 
/**
 * 供应商服务保障模型
 */
class ServiceSecurity extends BaseModel
{
    protected $pk = 'service_security_id';
    protected $name = 'supplier_service_security';
    /**
     * 所有
     * @return \think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public static function getALL($map=[])
    {
        $model = new static;
        if($map){
            $model=$model->where($map);
        }
        return $model->order(['create_time' => 'asc'])->select();
    }
    /**
     * 详情
     */
    public static function detail($service_security_id)
    {
        return (new static())->find($service_security_id);
    }
}