浏览代码

class和funcid都增加projectId和groupCode

menglu 4 年之前
父节点
当前提交
f4dad59f59
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      ibms-data-sdk/src/main/java/com/persagy/ibms/data/sdk/util/RWDDownloadUtil.java

+ 4 - 2
ibms-data-sdk/src/main/java/com/persagy/ibms/data/sdk/util/RWDDownloadUtil.java

@@ -126,7 +126,8 @@ public class RWDDownloadUtil {
 			JSONObject param = new JSONObject();
 			JSONObject criteria = new JSONObject();
 			param.put("criteria", criteria);
-			String post_result = HttpClientUtil.post(Constant.rwd_url + "rwd/def/class", param.toJSONString());
+			String post_result = HttpClientUtil.post(Constant.rwd_url + "rwd/def/class?projectId=" + RepositoryContainer.RepositoryBase.projectId
+					+ "&groupCode=" + RepositoryContainer.RepositoryBase.groupCode, param.toJSONString());
 			JSONObject resultJSON = JSON.parseObject(post_result);
 			classArray = resultJSON.getJSONArray("data");
 			classArray = classArray == null ? new JSONArray() : classArray;
@@ -145,7 +146,8 @@ public class RWDDownloadUtil {
 				criteria.put("valid", 1);
 				param.put("criteria", criteria);
 				log.debug("Download info " + code);
-				String post_result = HttpClientUtil.post(Constant.rwd_url + "rwd/def/funcid", param.toJSONString());
+				String post_result = HttpClientUtil.post(Constant.rwd_url + "rwd/def/funcid?projectId=" + RepositoryContainer.RepositoryBase.projectId
+						+ "&groupCode=" + RepositoryContainer.RepositoryBase.groupCode, param.toJSONString());
 				JSONObject resultJSON = JSON.parseObject(post_result);
 				infoArray = resultJSON.getJSONArray("data");
 			}