quanwei
2025-12-13 30563323a53b0d0260c97d08a9e8bd4cc8227a95
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
<?php
 
namespace app\common\model\settings;
 
use app\common\model\BaseModel;
 
/**
 * 退货地址模型
 */
class ReturnAddress extends BaseModel
{
    protected $name = 'return_address';
    protected $pk = 'address_id';
 
    /**
     * 退货地址详情
     */
    public static function detail($address_id)
    {
        return (new static())->find($address_id);
    }
 
    /**
     * 获取全部收货地址
     */
    public function getAll($shop_supplier_id)
    {
        return $this->where('shop_supplier_id', '=', $shop_supplier_id)
            ->where('is_delete', '=', 0)
            ->order(['sort' => 'asc'])
            ->select();
    }
}