|
@@ -54,7 +54,7 @@ class PlantCgController extends BaseController
|
|
|
{
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
$get = Yii::$app->request->get();
|
|
|
$id = $get['id'] ?? 0;
|
|
$id = $get['id'] ?? 0;
|
|
|
- $item = PurchaseOrderItemClass::getById($id, true);
|
|
|
|
|
|
|
+ $item = PlantCgItemClass::getById($id, true);
|
|
|
if (empty($item)) {
|
|
if (empty($item)) {
|
|
|
util::fail('没有找到花材');
|
|
util::fail('没有找到花材');
|
|
|
}
|
|
}
|