fix:depot materialCategory

This commit is contained in:
LAPTOP-7SGDREK0\shiweijun
2025-01-22 17:15:50 +08:00
parent 63c3574c5f
commit d231f343d3
5 changed files with 20 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ namespace App\Service\Admin\Depot;
use App\Constants\Admin\DepotCode;
use App\Exception\ErrException;
use App\Model\Depot;
use App\Model\DepotPurchase;
use App\Service\Admin\BaseService;
use Hyperf\Di\Annotation\Inject;
@@ -18,6 +19,9 @@ class DepotService extends BaseService{
#[Inject]
protected Depot $DepotModel;
#[Inject]
protected DepotPurchase $DepotPurchaseModel;
public function handle()
{
@@ -85,8 +89,6 @@ class DepotService extends BaseService{
}
$info->name = $depotName;
$info->city_id = (int)$this->request->input('city_id');
$info->kitchen_id = $kitchen_id;
if (!$info->save()) throw new ErrException('仓库修改失败');