促销商品总数

// 促销商品总算
function grab_promote_goods_count(){
    $time = gmtime();
    $sql = "SELECT COUNT(*) " .
            "FROM " . $GLOBALS['ecs']->table('goods')."WHERE is_on_sale = 1 AND is_alone_sale = 1 AND is_delete = 0  AND is_promote = 1 AND promote_start_date <= '$time' AND promote_end_date >= '$time'";

    return $GLOBALS['db']->getOne($sql);    
}

 

相关文章:

  • 2021-12-04
  • 2021-09-21
  • 2021-09-21
  • 2021-09-21
  • 2021-11-17
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
相关资源
相似解决方案