|
|
|
@ -223,7 +223,7 @@ class SupplyDemandController extends CommonController
|
|
|
|
if ($validator->fails()) {
|
|
|
|
if ($validator->fails()) {
|
|
|
|
return $this->fail([ResponseCode::ERROR_PARAMETER, implode(',', $validator->errors()->all())]);
|
|
|
|
return $this->fail([ResponseCode::ERROR_PARAMETER, implode(',', $validator->errors()->all())]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$model = SupplyDemand::find($all['id']);
|
|
|
|
$model = SupplyDemand::find($all['supply_demand_id']);
|
|
|
|
if (empty($model)) {
|
|
|
|
if (empty($model)) {
|
|
|
|
return $this->fail([ResponseCode::ERROR_BUSINESS, '供需数据不存在']);
|
|
|
|
return $this->fail([ResponseCode::ERROR_BUSINESS, '供需数据不存在']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|