From f0bf48da8c023fd2ab1200353c6fbf21a4914bd1 Mon Sep 17 00:00:00 2001 From: ldeyun Date: Mon, 24 Feb 2025 07:45:41 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20ruoyi-ngtools/src/main/jav?= =?UTF-8?q?a/com/ruoyi/ngCalTools/controller/GasController.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改类初始化 --- .../java/com/ruoyi/ngCalTools/controller/GasController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-ngtools/src/main/java/com/ruoyi/ngCalTools/controller/GasController.java b/ruoyi-ngtools/src/main/java/com/ruoyi/ngCalTools/controller/GasController.java index 48634f9..983568c 100644 --- a/ruoyi-ngtools/src/main/java/com/ruoyi/ngCalTools/controller/GasController.java +++ b/ruoyi-ngtools/src/main/java/com/ruoyi/ngCalTools/controller/GasController.java @@ -48,7 +48,7 @@ return tempPar; } public double SOS(GasProps gasProps) { // check if library is ready; initialize if necessary - if (null == (detailService=new DetailService()) || null == (thermService=new ThermService())) { + if (null == (detailService=) || null == (thermService)) { NG_Cal_UnInit(); NG_Cal_Init(); } @@ -81,7 +81,7 @@ return tempPar; int i; //check objects for readiness; try to initialize if not - if (null == (detailService=new DetailService()) || null == (thermService=new ThermService())) + if (null == (detailService=) || null == (thermService)) { NG_Cal_UnInit(); @@ -146,7 +146,7 @@ return tempPar; } public double Zcal(GasProps gasProps, double dPlenumVelocity) { - if (null == (detailService=new DetailService()) || null == (thermService=new ThermService())) + if (null == (detailService) || null == (thermService)) { NG_Cal_UnInit(); if (GasConstants.NG_Cal_INITIALIZED != NG_Cal_Init())