|
|
@@ -91,8 +91,8 @@ class ProductPopular extends Model
|
|
|
public static function getPopularByTime( $productId, string $lan, $tim)
|
|
|
{
|
|
|
return self::alias('a')
|
|
|
- ->where('a.start_time', '>=', $tim)
|
|
|
- ->where('a.end_time', '<=', $tim)
|
|
|
+ ->where('a.start_time', '<=', $tim)
|
|
|
+ ->where('a.end_time', '>=', $tim)
|
|
|
->join('product_list b', "a.product_id = b.id", "left")
|
|
|
->field('a.*,b.is_area,'.$lan.'_name as name')
|
|
|
->where('a.product_id', $productId)->find();
|