修改门店品牌修改后保存

This commit is contained in:
lcc
2025-10-10 11:18:28 +08:00
parent 4bc4fff673
commit f43f7f9c82
+2
View File
@@ -235,6 +235,8 @@ class Store extends HD_Controller
return $this->show_json(SYS_CODE_FAIL, '添加失败');
}
if (is_array($car_brand_ids)) {
$brandIds = implode(',',$car_brand_ids);
$brandIds && $this->biz_car_brand_model->delete(['biz_id' => $id,'brand_id NOT IN('.$brandIds.')'=>null]);
$carBrandData = [];
foreach ($car_brand_ids as $item) {
$carBrandData[] = [