diff --git a/softwareDirectory/AutoVerScheme/basecommonapi.cpp b/softwareDirectory/AutoVerScheme/basecommonapi.cpp index e1842ad..46799f1 100644 --- a/softwareDirectory/AutoVerScheme/basecommonapi.cpp +++ b/softwareDirectory/AutoVerScheme/basecommonapi.cpp @@ -3407,9 +3407,9 @@ } case 5: { //二等铂电阻 - DeviceMeasureDataPistonGauge *recordGauge = dynamic_cast(object); - if (recordGauge != nullptr) { - result = BaseCommonApi::InsertDeviceMeasureDataPistonGauge(*recordGauge); + DeviceMeasureDataResistanceThermometer *thermometer = dynamic_cast(object); + if (thermometer != nullptr) { + result = BaseCommonApi::InsertDeviceMeasureDataResistanceThermometer(*thermometer); } else { // 处理转换失败的情况 result = false; diff --git a/softwareDirectory/AutoVerScheme/basecommonapi.cpp b/softwareDirectory/AutoVerScheme/basecommonapi.cpp index e1842ad..46799f1 100644 --- a/softwareDirectory/AutoVerScheme/basecommonapi.cpp +++ b/softwareDirectory/AutoVerScheme/basecommonapi.cpp @@ -3407,9 +3407,9 @@ } case 5: { //二等铂电阻 - DeviceMeasureDataPistonGauge *recordGauge = dynamic_cast(object); - if (recordGauge != nullptr) { - result = BaseCommonApi::InsertDeviceMeasureDataPistonGauge(*recordGauge); + DeviceMeasureDataResistanceThermometer *thermometer = dynamic_cast(object); + if (thermometer != nullptr) { + result = BaseCommonApi::InsertDeviceMeasureDataResistanceThermometer(*thermometer); } else { // 处理转换失败的情况 result = false; diff --git a/softwareDirectory/AutoVerScheme/databaseconnection.cpp b/softwareDirectory/AutoVerScheme/databaseconnection.cpp index 84ca56b..24662f7 100644 --- a/softwareDirectory/AutoVerScheme/databaseconnection.cpp +++ b/softwareDirectory/AutoVerScheme/databaseconnection.cpp @@ -18,7 +18,7 @@ localdb.setPassword("123456"); Maindb = QSqlDatabase::addDatabase("QODBC","Main"); - Maindb.setHostName("27.99.50.20"); + Maindb.setHostName("27.99.50.209"); Maindb.setDatabaseName("test"); Maindb.setPort(3306); Maindb.setUserName("casic_203");