|
|
@@ -493,20 +493,23 @@ public class SmsbAppointmentInfoServiceImpl implements ISmsbAppointmentInfoServi
|
|
|
result.add("企业地市:" + reportMapJson.get("organizeZone"));
|
|
|
// 2-读取报告具体内容
|
|
|
JSONObject reportContent = reportMapJson.getJSONObject("reportContent");
|
|
|
- result.add("诊断结果:诊断得分为" + reportContent.get("score") + ",诊断等级为" + reportMapJson.get("rateName"));
|
|
|
+ String score = reportContent.getStr("score");
|
|
|
+ result.add("诊断结果:诊断得分为" + score.substring(score.indexOf('.') + 2) + ",诊断等级为" + reportMapJson.get("rateName"));
|
|
|
StringBuilder builder = new StringBuilder("诊断详情/具体情况/展开分析:");
|
|
|
JSONArray situation = reportContent.getJSONArray("situation");
|
|
|
if (situation != null) {
|
|
|
situation.forEach(item -> {
|
|
|
JSONObject situationItem = JSONUtil.parseObj(item);
|
|
|
+ String actualScore1 = situationItem.getStr("actualScore");
|
|
|
builder.append(situationItem.getStr("className")).append("方面得分为")
|
|
|
- .append(situationItem.getStr("actualScore")).append(";");
|
|
|
+ .append(actualScore1.substring(actualScore1.indexOf('.') + 2)).append(";");
|
|
|
StringBuilder stringBuilder = new StringBuilder(situationItem.getStr("className"));
|
|
|
stringBuilder.append("方面具体情况:");
|
|
|
situationItem.getJSONArray("children").forEach(childItem -> {
|
|
|
JSONObject children = JSONUtil.parseObj(childItem);
|
|
|
+ String actualScore2 = children.getStr("actualScore");
|
|
|
stringBuilder.append(children.getStr("className")).append("得分为")
|
|
|
- .append(children.getStr("actualScore")).append(",");
|
|
|
+ .append(actualScore2.substring(actualScore2.indexOf('.') + 2)).append(",");
|
|
|
});
|
|
|
result.add(stringBuilder.toString());
|
|
|
});
|