车型下拉返回 年份

This commit is contained in:
2025-10-11 15:54:04 +08:00
parent 84bd19efff
commit d337fa88a9
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -55,6 +55,6 @@ class VehVehicleSkuLogic
public function getList($data)
{
return VehVehicleSku::where($data)->orderBy('id','desc')->get(['id', 'sku_code', 'brand_code', 'brand_code', 'series_code', 'series_name', 'model_code', 'model_name', 'msrp']);
return VehVehicleSku::where($data)->orderBy('id','desc')->get(['id', 'sku_code', 'brand_code', 'brand_code', 'series_code', 'series_name', 'model_code', 'model_name', 'model_year', 'msrp']);
}
}
@@ -157,6 +157,9 @@ class VehVehicleSkuService
if (empty($data['model_name'])) {
$data['model_name'] = ModelNaming::buildModelName($data);
}
if (empty($data['engine_disp_l'])) {
$data['engine_disp_l'] = 0;
}
$data['sku_code'] = SkuCodeBuilder::build($data);
$data['corp_id'] = 0;
$data['created_by'] = $request->user->uid;