git-svn-id: svn://192.168.0.12/source@108 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -184,13 +184,8 @@ void Widget::Start()
|
||||
"FROM crawling INNER JOIN keyword ON crawling.keyword_id = keyword.id "
|
||||
"inner join datagroup on crawling.datagroup_id = datagroup.id "
|
||||
"where crawling.id = '" + m_strCrawlingID + "'");
|
||||
query.next();
|
||||
/*
|
||||
QString str = + " , ";
|
||||
str += query.value(1).toString() + " ~ ";
|
||||
str += query.value(2).toString() + " -> ";
|
||||
str += query.value(3).toString();
|
||||
*/
|
||||
|
||||
if (query.next() == false) return;
|
||||
|
||||
m_nPlatform = 0;
|
||||
if(0 <= query.value(6).toInt() && query.value(6).toInt() < C_CRAWLER_MAX)
|
||||
@@ -293,14 +288,14 @@ void Widget::Update()
|
||||
QDate dateNow = QDate::currentDate();
|
||||
m_strCrawlingID.clear();
|
||||
while (query.next())
|
||||
{
|
||||
{
|
||||
QDate dateStart = QDate::fromString(query.value(1).toString(),"yyyy-MM-dd");
|
||||
QDate dateEnd = QDate::fromString(query.value(2).toString(),"yyyy-MM-dd");
|
||||
if (dateNow < dateStart) continue;
|
||||
if (dateNow > dateEnd) continue;
|
||||
m_strCrawlingID = query.value(0).toString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(m_strCrawlingID.isEmpty() == false)
|
||||
Start();
|
||||
UnLockTables();
|
||||
|
||||
Reference in New Issue
Block a user