车辆特性更新
This commit is contained in:
@@ -302,13 +302,13 @@ class VehicleNewService extends BaseService
|
|||||||
if(!empty($trait['id'])){
|
if(!empty($trait['id'])){
|
||||||
$traitId = $trait['id'];
|
$traitId = $trait['id'];
|
||||||
$traitsId[] = $traitId;
|
$traitsId[] = $traitId;
|
||||||
$trait_res = $VehicleNewAskedService->update($traitId, $trait);
|
$trait_res = $VehicleNewTraitService->update($traitId, $trait);
|
||||||
if (!$trait_res) {
|
if (!$trait_res) {
|
||||||
throw new BusinessException('提交失败:车辆特性');
|
throw new BusinessException('提交失败:车辆特性');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
unset($trait['id']);
|
unset($trait['id']);
|
||||||
$trait_res = $VehicleNewAskedService->create($trait);
|
$trait_res = $VehicleNewTraitService->create($trait);
|
||||||
if (!$trait_res) {
|
if (!$trait_res) {
|
||||||
throw new BusinessException('提交失败:车辆特性');
|
throw new BusinessException('提交失败:车辆特性');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user