zsf 1 жил өмнө
parent
commit
1ad94e9864

+ 13 - 13
QFD/dbService/NodeMatrixService.cpp

@@ -209,7 +209,7 @@ bool NodeMatrixService::QueryNodeMatrixListByExpertNameAndEngineerId(QList<NodeM
     QSqlQuery query(db);
     bool ret          = false;
     QString selectSql = QString("select id,expert_name, engineer_id, node, abscissa, ordinate, "
-                                "node_value, expert_id,mind_id,write_date,str_uuid from "
+                                "node_value, expert_id,mind_id,write_date,mark,str_uuid from "
                                 "t_node_matrix_info where expert_name "
                                 "= '%1' and engineer_id ='%2'")
                                 .arg(expertName)
@@ -220,8 +220,8 @@ bool NodeMatrixService::QueryNodeMatrixListByExpertNameAndEngineerId(QList<NodeM
                 NodeMatrixInfo *nodeMatrixInfo = new NodeMatrixInfo();
                 nodeMatrixInfo->id             = query.value(0).toInt();
                 nodeMatrixInfo->expertName     = query.value(1).toString();
-                nodeMatrixInfo->node           = query.value(2).toString();
-                nodeMatrixInfo->engineerId     = query.value(3).toInt();
+                nodeMatrixInfo->engineerId     = query.value(2).toInt();
+                nodeMatrixInfo->node           = query.value(3).toString();
                 nodeMatrixInfo->abscissa       = query.value(4).toString();
                 nodeMatrixInfo->ordinate       = query.value(5).toString();
                 nodeMatrixInfo->nodeValue      = query.value(6).toString();
@@ -354,8 +354,8 @@ bool NodeMatrixService::QueryNodeMatrixListByExpertIdAndEngineerId(QList<NodeMat
                 NodeMatrixInfo *nodeMatrixInfo = new NodeMatrixInfo();
                 nodeMatrixInfo->id             = query.value(0).toInt();
                 nodeMatrixInfo->expertName     = query.value(1).toString();
-                nodeMatrixInfo->engineerId     = query.value(3).toInt();
-                nodeMatrixInfo->node           = query.value(2).toString();
+                nodeMatrixInfo->engineerId     = query.value(2).toInt();
+                nodeMatrixInfo->node           = query.value(3).toString();
                 nodeMatrixInfo->abscissa       = query.value(4).toString();
                 nodeMatrixInfo->ordinate       = query.value(5).toString();
                 nodeMatrixInfo->nodeValue      = query.value(6).toString();
@@ -394,9 +394,9 @@ bool NodeMatrixService::QueryNodeMatrixListByExpertIdAndEngineerId2(QList<NodeMa
                 NodeMatrixInfo *nodeMatrixInfo = new NodeMatrixInfo();
                 nodeMatrixInfo->id             = query.value(0).toInt();
                 nodeMatrixInfo->expertName     = query.value(1).toString();
-                nodeMatrixInfo->engineerId     = query.value(3).toInt();
+                nodeMatrixInfo->engineerId     = query.value(2).toInt();
 
-                nodeMatrixInfo->node      = query.value(2).toString();
+                nodeMatrixInfo->node      = query.value(3).toString();
                 nodeMatrixInfo->abscissa  = query.value(4).toString();
                 nodeMatrixInfo->ordinate  = query.value(5).toString();
                 nodeMatrixInfo->nodeValue = query.value(6).toString();
@@ -421,8 +421,8 @@ bool NodeMatrixService::QueryNodeMatrixListByExpertName(QList<NodeMatrixInfo *>
     QSqlDatabase db = SqlDBHelper::getDatabase();
     QSqlQuery query(db);
     bool ret          = false;
-    QString selectSql = QString("select id,expert_name, engineer_id, node, abscissa, ordinate, "
-                                "node_value, expert_id,mind_name,write_date ,str_uuid from "
+    QString selectSql = QString("select id,expert_name,  node,engineer_id, abscissa, ordinate, "
+                                "node_value, expert_id,mind_name,write_date,mark ,str_uuid from "
                                 "t_node_matrix_info where expert_name = '%1'")
                                 .arg(expertName);
     if (query.exec(selectSql)) {
@@ -457,8 +457,8 @@ bool NodeMatrixService::QueryNodeMatrixListByExpertId(QList<NodeMatrixInfo *> *n
     QSqlDatabase db = SqlDBHelper::getDatabase();
     QSqlQuery query(db);
     bool ret          = false;
-    QString selectSql = QString("select id,expert_name, engineer_id, node, abscissa, ordinate, "
-                                "node_value, expert_id,mind_name,write_date,str_uuid from "
+    QString selectSql = QString("select id,expert_name, node,engineer_id,  abscissa, ordinate, "
+                                "node_value, expert_id,mind_name,write_date,mark,str_uuid from "
                                 "t_node_matrix_info where expert_id = '%1'")
                                 .arg(expertId);
     if (query.exec(selectSql)) {
@@ -492,8 +492,8 @@ bool NodeMatrixService::QueryNodeMatrixListByEngineerId(QList<NodeMatrixInfo *>
     QSqlDatabase db = SqlDBHelper::getDatabase();
     QSqlQuery query(db);
     bool ret          = false;
-    QString selectSql = QString("select id,expert_name, engineer_id, node, abscissa, ordinate, "
-                                "node_value, expert_id ,mind_name,write_date,str_uuid from "
+    QString selectSql = QString("select id,expert_name, node, engineer_id, abscissa, ordinate, "
+                                "node_value, expert_id ,mind_name,write_date,mark,str_uuid from "
                                 "t_node_matrix_info where engineer_id = '%1'")
                                 .arg(engineerId);
     if (query.exec(selectSql)) {