Browse Source

no message

master
weigang 5 years ago
parent
commit
cfec412f59
  1. 4
      app/Service/v3/Implementations/GoodsActivityService.php

4
app/Service/v3/Implementations/GoodsActivityService.php

@ -156,6 +156,10 @@ class GoodsActivityService implements GoodsActivityServiceInterface
public function checkOrderActivityCount($goodsIds, $limitNum=1)
{
if (empty($goodsIds)) {
return true;
}
$sourceGoods = GoodsActivity::query()
->whereIn('id', $goodsIds)
->orderByRaw('FIELD(`id`,'.implode(',', $goodsIds).')')

Loading…
Cancel
Save