버즈량 계산시 days 옵션의 from, to 파라미터 고려
git-svn-id: svn://192.168.0.12/source@243 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -2391,8 +2391,15 @@ void SFilterProcess::DataPut(QString _strCompanyNum)
|
||||
if(query.exec(strQuery.toUtf8()) == false) {InsertLog(query.lastQuery()); InsertLog(query.lastError().text());return;}
|
||||
|
||||
QDate date = QDate::currentDate().addDays(m_nCutDays);
|
||||
if(!m_strStartDay.isEmpty())
|
||||
date = QDate::fromString(m_strStartDay, "'yyyy-MM-dd'");
|
||||
|
||||
QDate endDate = QDate::currentDate();
|
||||
if(!m_strEndDay.isEmpty())
|
||||
endDate = QDate::fromString(m_strEndDay,"'yyyy-MM-dd'");
|
||||
|
||||
QString astrOrderBy[D_ARTICLE_MAX] = {"body","reply","all"};
|
||||
while(date <= QDate::currentDate())
|
||||
while(date <= endDate)
|
||||
{
|
||||
QVector <SBuzzyCount> vecCount;
|
||||
foreach(SBuzzy stBuzzy,m_vecBuzzy)
|
||||
|
||||
Reference in New Issue
Block a user