'================================================ '函数名:LoadStatistic '作 用:装载频道统计 '参 数:moduleid ----所属模块 ' ChannelID ----频道ID ' strClass ----所调用的分类ID或者软件类型 ' stype ----统计类型,0=全部统计,1=今日更新统计,2=点击数统计,3=软件容量统计 '================================================ |
ElseIf stype = 9 Then SQL = "SELECT * FROM NC_Article WHERE isAccept=0 " & foundsql |
Case 1 If stype = 1 Then If isSqlDataBase = 1 Then SQL = "SELECT COUNT(ArticleID) FROM NC_Article WHERE isAccept>0 " & foundsql & " And Datediff(d,WriteTime,GetDate())=0" Else SQL = "SELECT COUNT(ArticleID) FROM NC_Article WHERE isAccept>0 " & foundsql & " And WriteTime>=Date()" End If ElseIf stype = 2 Then SQL = "SELECT SUM(AllHits) FROM NC_Article WHERE isAccept>0 " & foundsql ElseIf stype = 4 Then SQL = "SELECT SUM(DayHits) FROM NC_Article WHERE isAccept>0 " & foundsql ElseIf stype = 9 Then SQL = "SELECT * FROM NC_Article WHERE isAccept=0 " & foundsql Else SQL = "SELECT COUNT(ArticleID) FROM NC_Article WHERE isAccept>0 " & foundsql End If |
新闻热点
疑难解答