[M]去掉趋势的设备组id 倒序
This commit is contained in:
parent
5f1a4dabd3
commit
3d5f4c312a
@ -334,10 +334,10 @@ void CTrendInfoManage::loadDevGroupInfo(CDbApi *pReadDb)
|
|||||||
QString sqlSequenceQuery = QStringLiteral("select tag_name, description, location_id from dev_group where sub_system > 3 ");
|
QString sqlSequenceQuery = QStringLiteral("select tag_name, description, location_id from dev_group where sub_system > 3 ");
|
||||||
if(!strLoctionFilter.isEmpty())
|
if(!strLoctionFilter.isEmpty())
|
||||||
{
|
{
|
||||||
sqlSequenceQuery.append(QString(" and %1 order by location_id , rtu_no , dev_group_no asc ,tag_name;").arg(strLoctionFilter));
|
sqlSequenceQuery.append(QString(" and %1 order by location_id , rtu_no , dev_group_no ,tag_name;").arg(strLoctionFilter));
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
sqlSequenceQuery.append(QStringLiteral(" order by location_id , rtu_no , dev_group_no asc ,tag_name;"));
|
sqlSequenceQuery.append(QStringLiteral(" order by location_id , rtu_no , dev_group_no ,tag_name;"));
|
||||||
}
|
}
|
||||||
query.setForwardOnly(true);
|
query.setForwardOnly(true);
|
||||||
pReadDb->execute(sqlSequenceQuery, query);
|
pReadDb->execute(sqlSequenceQuery, query);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user