Browse Source

修改导出报告没有得分导出异常的问题

wangyaodong 2 years ago
parent
commit
cf7385680f

+ 6 - 1
simulation-resource-server/src/main/java/com/css/simulation/resource/project/impl/SimulationProjectServiceImpl.java

@@ -2918,7 +2918,12 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
                             String sceneScore = v1.getSceneScore();
                             BigDecimal score = new BigDecimal("0");
                             if(sceneScore != null && !"".equals(sceneScore)){
-                                score = new BigDecimal(sceneScore);
+                                try {
+                                    score = new BigDecimal(sceneScore);
+                                }catch (Exception e){
+                                    score = new BigDecimal("0");
+                                }
+
                             }
                             int r = score.compareTo(new BigDecimal("100"));
                             if(r == -1){