|
@@ -72,7 +72,7 @@ void MindEvaluation::init()
|
|
|
void MindEvaluation::computeSingleWeights()
|
|
|
{
|
|
|
QList<NodeMatrixInfo *> nmInfos;
|
|
|
- if (NodeMatrixService().QueryNodeMatrixListByExpertIdAndEngineerId2(&nmInfos, m_expertId, m_mind->root().projectId,
|
|
|
+ if (!NodeMatrixService().QueryNodeMatrixListByExpertIdAndEngineerId(&nmInfos, m_expertId, m_mind->root().projectId,
|
|
|
m_tableType)) {
|
|
|
QMessageBox::warning(nullptr, "警告", "数据库访问失败");
|
|
|
return;
|
|
@@ -215,7 +215,7 @@ void MindEvaluation::computeNoMergeWeights()
|
|
|
int enjId = m_mind->root().projectId;
|
|
|
QList<UserConfig *> users;
|
|
|
|
|
|
- if (UserConfigService().QueryUserConfigListInfoByEngineerId(&users, enjId)) {
|
|
|
+ if (!UserConfigService().QueryUserConfigListInfoByEngineerId(&users, enjId)) {
|
|
|
QMessageBox::warning(nullptr, "警告", "数据库访问失败");
|
|
|
return;
|
|
|
}
|
|
@@ -226,7 +226,7 @@ void MindEvaluation::computeNoMergeWeights()
|
|
|
|
|
|
for (const auto &user : users) {
|
|
|
QList<NodeMatrixInfo *> nmInfos;
|
|
|
- if (NodeMatrixService().QueryNodeMatrixListByExpertIdAndEngineerId2(&nmInfos, user->id, enjId, m_tableType)) {
|
|
|
+ if (!NodeMatrixService().QueryNodeMatrixListByExpertIdAndEngineerId(&nmInfos, user->id, enjId, m_tableType)) {
|
|
|
qDeleteAll(users);
|
|
|
QMessageBox::warning(nullptr, "警告", "数据库访问失败");
|
|
|
return;
|
|
@@ -264,7 +264,7 @@ void MindEvaluation::computeMergeWeights()
|
|
|
int enjId = m_mind->root().projectId;
|
|
|
QList<UserConfig *> users;
|
|
|
|
|
|
- if (UserConfigService().QueryUserConfigListInfoByEngineerId(&users, enjId)) {
|
|
|
+ if (!UserConfigService().QueryUserConfigListInfoByEngineerId(&users, enjId)) {
|
|
|
QMessageBox::warning(nullptr, "警告", "数据库访问失败");
|
|
|
return;
|
|
|
}
|
|
@@ -276,7 +276,7 @@ void MindEvaluation::computeMergeWeights()
|
|
|
|
|
|
for (const auto &user : users) {
|
|
|
QList<NodeMatrixInfo *> nmInfos;
|
|
|
- if (NodeMatrixService().QueryNodeMatrixListByExpertIdAndEngineerId2(&nmInfos, user->id, enjId, m_tableType)) {
|
|
|
+ if (!NodeMatrixService().QueryNodeMatrixListByExpertIdAndEngineerId(&nmInfos, user->id, enjId, m_tableType)) {
|
|
|
qDeleteAll(users);
|
|
|
QMessageBox::warning(nullptr, "警告", "数据库访问失败");
|
|
|
return;
|