fix:depot materialCategory
This commit is contained in:
@@ -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('仓库修改失败');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user