From 4c1b7047508b9ca124db396e0807d80b34bba989 Mon Sep 17 00:00:00 2001 From: shijianquan <992593080@qq.com> Date: Thu, 5 Jun 2025 10:23:45 +0800 Subject: [PATCH] =?UTF-8?q?[pref]=E4=BC=98=E5=8C=96=EF=BC=8C=E8=B6=8B?= =?UTF-8?q?=E5=8A=BF=E9=A1=B5=E9=9D=A2=E7=9A=84=E6=8E=92=E5=BA=8F=EF=BC=8C?= =?UTF-8?q?=E6=8C=89tagname=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- product/src/gui/plugin/TrendCurves/CTrendInfoManage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/src/gui/plugin/TrendCurves/CTrendInfoManage.cpp b/product/src/gui/plugin/TrendCurves/CTrendInfoManage.cpp index 617a24b4..ea14fa85 100644 --- a/product/src/gui/plugin/TrendCurves/CTrendInfoManage.cpp +++ b/product/src/gui/plugin/TrendCurves/CTrendInfoManage.cpp @@ -383,7 +383,7 @@ void CTrendInfoManage::loadDevGroupInfo(CDbApi *pReadDb) { return ; } - 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 order by tag_name"); if(!strLoctionFilter.isEmpty()) { sqlSequenceQuery.append(QString(" and %1 order by dev_group_no asc;").arg(strLoctionFilter)); @@ -420,7 +420,7 @@ void CTrendInfoManage::loadDeviceInfo(CDbApi *pReadDb) } strLoctionFilter = QString("(group_tag_name in ('%1'))").arg(listLocation.join("','")); } - QString sqlSequenceQuery = QStringLiteral("select tag_name, description, group_tag_name, location_id from dev_info"); + QString sqlSequenceQuery = QStringLiteral("select tag_name, description, group_tag_name, location_id from dev_info order by tag_name"); if(!strLoctionFilter.isEmpty()) { sqlSequenceQuery.append(QString(" where %1;").arg(strLoctionFilter));