quanwei
2 days ago 04102f7237efefa744090ed7c25f7b5d0807b679
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
<?php
 
namespace app\api\model\supplier;
use app\common\model\supplier\ServiceApply as ServiceApplyModel;
/**
 * 供应商服务保障申请模型
 */
class ServiceApply extends ServiceApplyModel
{
    /**
     * 获取列表数据
     */
    public function getList($shop_supplier_id)
    {
        $model = $this;
        // 查询列表数据
        $list = $model->alias('a')
            ->where('a.status','=',1)
            ->where('shop_supplier_id','=',$shop_supplier_id)
            ->join('supplier_service_security s','s.service_security_id=a.service_security_id')
            ->field('name,describe')
            ->order(['a.create_time' => 'asc'])
            ->select();
        return $list;    
    }
   
}