quanwei
2025-12-09 ca425b889f3c1b5847ffc26a0229307f7f8ef43e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
 
namespace app\supplier\model\supplier;
 
use app\common\model\supplier\ServiceSecurity as ServiceSecurityModel;
/**
 * 供应商服务保障模型
 */
class ServiceSecurity extends ServiceSecurityModel
{
     public  function getList($shop_supplier_id)
    {    
        $list = parent::getAll(['status'=>1]);
        foreach ($list as $key => &$value) {
            $status = ServiceApply::getStatus($value['service_security_id'],$shop_supplier_id);
            $value['status'] = (isset($status)&&$status<=1)?$status:2;
        }
        return $list;
    }
}