filterprocess consumer / spammer 그래프 수정
카카오스토리 modified date가 위로 올라오는 문제로 인해 과거 댓글이 그래프구간에 영향을 끼치는 문제 수정 git-svn-id: svn://192.168.0.12/source@325 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -523,10 +523,34 @@ void SFilterObject::unlockTabs()
|
||||
m_tab.setTabEnabled(i, true);
|
||||
}
|
||||
|
||||
|
||||
bool SFilterObject::isLock()
|
||||
{
|
||||
QSqlQuery query;
|
||||
int nSelect = GetMainWindow()->m_pFilterDlg->GetSelectGroupID();
|
||||
qDebug() << nSelect;
|
||||
if (nSelect == D_NOT_SELECT)
|
||||
return true;
|
||||
|
||||
QString strQuery = "select locked from filtergroup where id = " + QString::number(nSelect);
|
||||
|
||||
if(!query.exec(strQuery))
|
||||
return false;
|
||||
|
||||
query.next();
|
||||
|
||||
if (query.value(0).toInt() == 0)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void SFilterObject::DataBaseFilter(int _nType,QString _strJson,int _nGroup,int _nCommand,int _nFilterID)
|
||||
{
|
||||
QString sql;
|
||||
if (_nGroup == D_NOT_SELECT) return;
|
||||
if (isLock()) return;
|
||||
switch(_nCommand)
|
||||
{
|
||||
case E_DATABASE_COMMAND_INSERT:
|
||||
|
||||
Reference in New Issue
Block a user