menglu 3 gadi atpakaļ
vecāks
revīzija
ec3900514e

+ 10 - 0
ibms-data-sdk/src/main/java/com/persagy/ibms/data/sdk/util/RWDDownloadUtil.java

@@ -285,6 +285,16 @@ public class RWDDownloadUtil {
 			String post_url = Constant.zkt_dmp_url + "/rwd/def/class?projectId=" + RepositoryContainer.RepositoryProject.projectId + "&groupCode="
 					+ RepositoryContainer.RepositoryProject.groupCode;
 			classArray = post_zkt_dmp(post_url, param);
+			//过滤部件
+			{
+				for (int i = classArray.size() - 1; i >= 0; i--) {
+					JSONObject item = (JSONObject) classArray.get(i);
+					String code = item.getString("code");
+					if (code.length() == 8 && code.equals(code.toUpperCase())) {
+						classArray.remove(i);
+					}
+				}
+			}
 			FileUtil.Save(path + Constant.getSeperator() + "classArray.json", FastJsonUtil.toFormatString(classArray), LogOfDownload.downloadList);
 		}
 		for (int i = 0; i < classArray.size(); i++) {