diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java index 9e25ab7..51243e5 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java @@ -160,38 +160,39 @@ public class ViewFacade { } } Integer score = 0; - if (highScoreResult.getScore()!=null){ - score = highScoreResult.getScore(); - } - - List> list = ResolveUtils.queryHighRisk(highScoreResult); + if (highScoreResult!=null){ + if (highScoreResult.getScore()!=null){ + score = highScoreResult.getScore(); + } + List> list = ResolveUtils.queryHighRisk(highScoreResult); - Map otherRisk = null; - if (StringUtils.isNotEmpty(oRisk) && !"{}".equals(oRisk)){ - otherRisk = new HashMap<>(); - ResolveUtils.queryOtherRisk(oRisk,otherRisk,basicConfigService); - } + Map otherRisk = null; + if (StringUtils.isNotEmpty(oRisk) && !"{}".equals(oRisk)){ + otherRisk = new HashMap<>(); + ResolveUtils.queryOtherRisk(oRisk,otherRisk,basicConfigService); + } - Map otherMap = new HashMap<>(); + Map otherMap = new HashMap<>(); - if (otherRisk!=null){ - if (otherRisk.get("name")!=null){ - otherMap.put("name",otherRisk.get("name")); - } - if (otherRisk.get("color")!=null){ - otherMap.put("color",otherRisk.get("color")); - } - if (otherRisk.get("score")!=null){ - String s = (String)otherRisk.get("score"); - if (FunvCommonUtil.isNumeric(s)){ - score = score + Integer.parseInt(s); + if (otherRisk!=null){ + if (otherRisk.get("name")!=null){ + otherMap.put("name",otherRisk.get("name")); + } + if (otherRisk.get("color")!=null){ + otherMap.put("color",otherRisk.get("color")); + } + if (otherRisk.get("score")!=null){ + String s = (String)otherRisk.get("score"); + if (FunvCommonUtil.isNumeric(s)){ + score = score + Integer.parseInt(s); + } } + list.add(otherMap); } - list.add(otherMap); - } - map.put("score",UnitUtils.unitSplice(score,UnitConstants.FEN)); - map.put("highRisk",list); + map.put("score",UnitUtils.unitSplice(score,UnitConstants.FEN)); + map.put("highRisk",list); + } }