|
|
@@ -393,6 +393,34 @@ public class ZhongcheServiceImpl implements ZhongcheService {
|
|
|
return McR.success();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public McR getProjectInfo(String projectId) {
|
|
|
+ List<Map> results = tbClient.projectDetail(projectId, null, null);
|
|
|
+
|
|
|
+ Map result = (Map) results.get(0);
|
|
|
+
|
|
|
+ Map map = new HashMap();
|
|
|
+
|
|
|
+ List<Map> customfields = UtilMap.getList(result, "customfields");
|
|
|
+
|
|
|
+ for (Map customfield : customfields) {
|
|
|
+ String customfieldId = UtilMap.getString(customfield, "customfieldId");
|
|
|
+
|
|
|
+ //项目号
|
|
|
+ if ("6805ecf00763b2e708d760bc".equals(customfieldId)){
|
|
|
+ List<Map> values = UtilMap.getList(customfield, "value");
|
|
|
+
|
|
|
+ Map value = values.get(0);
|
|
|
+
|
|
|
+ String title = UtilMap.getString(value, "title");
|
|
|
+
|
|
|
+ map.put("projectNo",title);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return McR.success(map);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 上传文件(核心方法)
|
|
|
* @param filePath 本地文件路径(如"2.png")
|