feat : sts

This commit is contained in:
2025-04-16 15:13:03 +08:00
parent 39be37f9a5
commit b61f1367b6
5 changed files with 20 additions and 8 deletions

View File

@@ -45,6 +45,12 @@ class PurchaseService extends BaseService
#[Inject]
protected GoodCache $goodCache;
/**
* @var Purchase
*/
#[Inject]
protected Purchase $purchaseModel;
/**
* @return array
*/
@@ -55,7 +61,7 @@ class PurchaseService extends BaseService
$kitchenId = (int)$this->request->input('search_kitchen_id');
$cityId = (int)$this->request->input('search_city_id');
$list = $this->spuModel
$list = $this->purchaseModel
->where('cycle_id',$cycleId)
->where('city_id',$cityId)
->where('kitchen_id',$kitchenId)
@@ -162,12 +168,6 @@ class PurchaseService extends BaseService
if ($occupiedOne >= (9 - 2 * $occupiedTwo)) throw new ErrException('不符合目前盒子的规则02添加失败');
}
/**
* @var Purchase
*/
#[Inject]
protected Purchase $purchaseModel;
/**
* @return array
* @throws ContainerExceptionInterface