dev
vine_liutk 2022-11-09 12:14:34 +08:00
parent 069ecb1e44
commit b3ef13654a
1 changed files with 1 additions and 1 deletions

View File

@ -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('该结点有关联产量数据, 无法删除');
}