38 lines
679 B
PHP
38 lines
679 B
PHP
<?php
|
|
|
|
namespace Beike\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class LogisticsWeight extends Base{
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'logistics_id',
|
|
'min',
|
|
'max',
|
|
];
|
|
/**
|
|
* Common: 根据物流ID获取全部续重范围
|
|
* Author: wu-hui
|
|
* Time: 2023/08/28 17:36
|
|
* @param $logisticsId
|
|
* @return array|mixed[]
|
|
*/
|
|
public static function getList($logisticsId){
|
|
$list = self::query()->where('logistics_id',$logisticsId)->orderBy('id','asc')->get();
|
|
|
|
return $list ? $list->toArray() : [];
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|