绩效获取方式修改

This commit is contained in:
翟林帆 2022-10-08 21:31:06 +08:00
parent 5dc9b4c98c
commit 8fb8d65def

View File

@ -212,15 +212,24 @@ public class Report1Gener {
continue;
}
Object attributes = entry.get("attributes");
String name = entry.get("name").toString();
String resultJson = attributes.toString();
JSONArray object= JSONArray.parseArray(resultJson);
for(int i=0; i<object.size(); i++) {
String key = object.getJSONObject(i).getString("key");
System.out.println("key============"+key);
//if (key.equals("explain") || key.equals("statistical_period") || key.equals("unit_measurement") || key.equals("data_sources") || key.equals("computational_formula") || key.equals("Index_definition") || key.equals("objective") || key.equals("Name_process_performance_indicator")) {
if (key.equals("Name_process_performance_indicator")){//指标名称 Name_process_performance_indicator
/*if (key.equals("Name_process_performance_indicator")){//指标名称
String value = object.getJSONObject(i).getString("value");
processObj.put("pl_Name_process_performance_indicator", value);
}else if (key.equals("set_the_purpose")){//设置目的 set_the_purpose
System.out.println("object====================="+object.toString());
System.out.println("value==============="+value);
processObj.put("pl_Name_process_performance_indicator", value);*/
//绩效名称获取基础属性名称数据
if(UtilString.isNotEmpty(name)){
processObj.put("pl_Name_process_performance_indicator", name);
}
if (key.equals("set_the_purpose")){//设置目的 set_the_purpose
String value = object.getJSONObject(i).getString("value");
processObj.put("pl_set_the_purpose", value);
}else if (key.equals("Index_definition")){//指标定义 Index_definition