dev
parent
069ecb1e44
commit
b3ef13654a
|
|
@ -67,7 +67,7 @@ class CropController extends Controller
|
|||
return $this->error('该结点有关联产量数据, 无法删除');
|
||||
}
|
||||
//如果有子节点,无法删除
|
||||
if (Crop::where(['parent_id', $crop->id])->exists()) {
|
||||
if (Crop::where(['parent_id' => $crop->id])->exists()) {
|
||||
return $this->error('该结点有关联产量数据, 无法删除');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue