1.优化准确度统计导出excel表头循序
2.优化标准场景库更新失败bug
This commit is contained in:
@@ -264,9 +264,20 @@ public class SimulationTaskPoolServiceForLyricImpl extends SimulationTaskPoolSer
|
||||
JSONArray confidenceStatisticResultArray = JSONArray.from(confidenceStatisticResults);
|
||||
JSONObject columnObj = new JSONObject();
|
||||
JSONArray columnArray= new JSONArray();
|
||||
JSONObject typeObj = new JSONObject();
|
||||
typeObj.put("type", 1);
|
||||
if(req.type == 1) {
|
||||
typeObj.put("key", "discipline");
|
||||
typeObj.put("title", "学科名称");
|
||||
}
|
||||
else {
|
||||
typeObj.put("key", "poolName");
|
||||
typeObj.put("title", "机型库名称");
|
||||
}
|
||||
columnArray.add(typeObj);
|
||||
JSONObject confidenceJson = new JSONObject();
|
||||
confidenceJson.put("key","confidence");
|
||||
confidenceJson.put("title","准确度平均值");
|
||||
confidenceJson.put("title","准确度平均值(%)");
|
||||
confidenceJson.put("type",1);
|
||||
columnArray.add(confidenceJson);
|
||||
JSONObject totalJson = new JSONObject();
|
||||
@@ -279,17 +290,6 @@ public class SimulationTaskPoolServiceForLyricImpl extends SimulationTaskPoolSer
|
||||
effectiveJson.put("title","有效数量");
|
||||
effectiveJson.put("type",1);
|
||||
columnArray.add(effectiveJson);
|
||||
JSONObject typeObj = new JSONObject();
|
||||
typeObj.put("type", 1);
|
||||
if(req.type == 1) {
|
||||
typeObj.put("key", "discipline");
|
||||
typeObj.put("title", "学科名称");
|
||||
}
|
||||
else {
|
||||
typeObj.put("key", "poolName");
|
||||
typeObj.put("title", "机型库名称");
|
||||
}
|
||||
columnArray.add(typeObj);
|
||||
columnObj.put("excelHeaders",columnArray);
|
||||
JSONObject contentJson = new JSONObject();
|
||||
contentJson.put("data",confidenceStatisticResultArray);
|
||||
@@ -512,6 +512,7 @@ public class SimulationTaskPoolServiceForLyricImpl extends SimulationTaskPoolSer
|
||||
}
|
||||
else
|
||||
{
|
||||
jsonObject.remove("lineCode");
|
||||
List<PropertyExtra> propertyExtraList = new ArrayList<>();
|
||||
for(String key : jsonObject.keySet()) {
|
||||
PropertyExtra propertyExtra = new PropertyExtra();
|
||||
|
||||
Reference in New Issue
Block a user