|
|
@@ -247,7 +247,7 @@ class StoreCartDao extends BaseDao
|
|
247
|
247
|
return $entityList;
|
|
248
|
248
|
}
|
|
249
|
249
|
|
|
250
|
|
- public function getCartEntityListByUidAndProductIdList(int $uid, array $productIdList): array
|
|
|
250
|
+ public function getCartEntityListByUidAndProductIdListAndCartId(int $uid, array $productIdList, int $cartId): array
|
|
251
|
251
|
{
|
|
252
|
252
|
$entityList = [];
|
|
253
|
253
|
try {
|
|
|
@@ -255,6 +255,7 @@ class StoreCartDao extends BaseDao
|
|
255
|
255
|
$model = $this->getModel();
|
|
256
|
256
|
$dataListRes = $model::getDB()
|
|
257
|
257
|
->where('uid', '=', $uid)
|
|
|
258
|
+ ->where('cart_id', '=', $cartId)
|
|
258
|
259
|
->whereIn('product_id', $productIdList)
|
|
259
|
260
|
->select()
|
|
260
|
261
|
->toArray();
|