feat: 添加批量采购询盘可选品类列表接口
This commit is contained in:
@@ -47,4 +47,14 @@ class SysConfigModel extends SysConfigBaseModel
|
||||
}
|
||||
$query->where('group_id', '=', $value);
|
||||
}
|
||||
|
||||
// 按name查询
|
||||
public function scopeByName($query, $value)
|
||||
{
|
||||
if (is_array($value)) {
|
||||
$query->where('name', 'in', $value);
|
||||
return;
|
||||
}
|
||||
$query->where('name', '=', $value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user