feat : sts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user