Browse Source

店铺歇业不搜索出来

master
weigang 5 years ago
parent
commit
ebf8fe5cd2
  1. 2
      app/Constants/v3/ErrorCode.php
  2. 2
      app/Service/v3/Implementations/SearchService.php

2
app/Constants/v3/ErrorCode.php

@ -182,7 +182,7 @@ class ErrorCode extends AbstractConstants
/**
* 商户异常,当前商户可能不存在或失效了
* @Message("当前商户异常")
* @Message("当前商户可能已关店停止营业")
*/
const STORE_NOT_AVAILABLE = 708;

2
app/Service/v3/Implementations/SearchService.php

@ -110,7 +110,7 @@ class SearchService implements SearchServiceInterface
$query->where(''.$goodsTable.'.inventory', '>', 0)->orWhere(''.$goodsTable.'.is_infinite', '=', 1);
})
->whereRaw(''.$goodsTable.'.deleted_at IS NULL')
->where([''.$storeTable.'.market_id' => $params['market_id']])
->where([''.$storeTable.'.market_id' => $params['market_id'], ''.$storeTable.'.is_rest' => StoreConstants::IS_REST_NO])
/*->where('time1', '<=', date('H:i'))
->where(function ($query) {
$query->where('time2', '>=', date('H:i'))

Loading…
Cancel
Save