날짜 체크 버그 수정

git-svn-id: svn://192.168.0.12/source@132 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
admin
2015-05-29 05:43:37 +00:00
parent ab8ea45bc6
commit a1640f52e8

View File

@@ -1766,7 +1766,7 @@ void SFilterProcess::DataPut(QString _strCompanyNum)
strQuery = "delete from stats_articlebuzzbyday where company_num = " + _strCompanyNum; strQuery = "delete from stats_articlebuzzbyday where company_num = " + _strCompanyNum;
if(query.exec(strQuery.toUtf8()) == false) {InsertLog(query.lastError().text());return;} if(query.exec(strQuery.toUtf8()) == false) {InsertLog(query.lastError().text());return;}
QDate date = QDate::currentDate().addDays(-60); QDate date = QDate::currentDate().addDays(m_nCutDays);
QString astrOrderBy[D_ARTICLE_MAX] = {"body","reply","all"}; QString astrOrderBy[D_ARTICLE_MAX] = {"body","reply","all"};
while(date <= QDate::currentDate()) while(date <= QDate::currentDate())
{ {