From 9423f2936340d82b046ec615381c1c5e03698557 Mon Sep 17 00:00:00 2001
From: yuxc <yuxc@vci-tech.com>
Date: 星期五, 27 九月 2024 17:56:53 +0800
Subject: [PATCH] 1、主要完成对获取UI上下文的定义接口的优化,优化的方向为对多次获取业务类型对象进行转换而导致耗时较久的问题继续修改,还有对多次获取属性对象进行转换对象导致耗时过长问题进行修改。 2、对树的数据查询接口的优化,对多次获取属性对象进行转换对象导致耗时过长问题进行修改。

---
 Source/Client/PLTClient/src/com/vci/client/portal/platformPortal/ExportExcel.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Source/Client/PLTClient/src/com/vci/client/portal/platformPortal/ExportExcel.java b/Source/Client/PLTClient/src/com/vci/client/portal/platformPortal/ExportExcel.java
index 5664877..eb4d153 100644
--- a/Source/Client/PLTClient/src/com/vci/client/portal/platformPortal/ExportExcel.java
+++ b/Source/Client/PLTClient/src/com/vci/client/portal/platformPortal/ExportExcel.java
@@ -17,6 +17,7 @@
 import org.apache.poi.hssf.usermodel.HSSFWorkbook;
 
 import com.vci.client.LogonApplication;
+import com.vci.client.common.providers.ServiceProvider;
 import com.vci.client.omd.provider.ApProvider;
 import com.vci.client.omd.provider.BtmProvider;
 import com.vci.client.omd.provider.LinkTypeProvider;
@@ -189,7 +190,7 @@
 			}
 			BufferedWriter qtbw = null;
 			try {
-				QTInfo qt = QTDClient.getService().getQT(qtName);
+				QTInfo qt = ServiceProvider.getOMDService().getQTDService().getQT(qtName);
 				if(qt != null){
 					//鏌ヨ妯℃澘鍚嶇О
 					cell = row.createCell(6);
@@ -214,7 +215,7 @@
 					cell = row.createCell(8);
 					cell.setCellValue(qt.btmName);
 				}
-				QTD[] qtdsByBtmName = QTDClient.getService().getBizTypeQTDs(btmname);
+				QTD[] qtdsByBtmName = ServiceProvider.getOMDService().getQTDService().getBizTypeQTDs(btmname);
 				for(int qtdIndex =0;qtdIndex<qtdsByBtmName.length;qtdIndex++){
 					HSSFRow qtdRow = qtdSheet.createRow(qtdIndex);
 					QTD qtd = qtdsByBtmName[qtdIndex];
@@ -235,7 +236,7 @@
 						qtdCell.setCellValue(qtdattr.substring(0,qtdattr.length()-1));
 					}
 				}
-				QTD[] qtdsByLinkTypeName = QTDClient.getService().getLinkTypeQTDs(linkname);
+				QTD[] qtdsByLinkTypeName = ServiceProvider.getOMDService().getQTDService().getLinkTypeQTDs(linkname);
 				for(int qtdLinkIndex =0;qtdLinkIndex<qtdsByLinkTypeName.length;qtdLinkIndex++){
 					HSSFRow qtdRow = qtdSheet.createRow(qtdLinkIndex);
 					QTD qtd = qtdsByLinkTypeName[qtdLinkIndex];

--
Gitblit v1.9.3