LingxinMeng 1 年間 前
コミット
ad1eb59507

+ 13 - 2
simulation-resource-server/src/main/java/com/css/simulation/resource/server/app/impl/SimulationProjectServiceImpl.java

@@ -2137,13 +2137,24 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
                         + ProjectConstants.SEPARATOR + "--"
                         + ProjectConstants.SEPARATOR + "--";
             } else {
+                // 最后两个字段暂时不需要,用 -- 替代了
+                String timeActual = "0";
+                String timeCorrection = "0";
+
+                if (StringUtil.isNotEmpty(sp.getTimeActual())){
+                    timeActual = sp.getTimeActual();
+                }
+                if (StringUtil.isNotEmpty(sp.getTimeCorrection())){
+                    timeCorrection = sp.getTimeCorrection();
+                }
+
                 sublistName += ProjectConstants.SEPARATOR + sp.getReturnSceneId()
                         + ProjectConstants.SEPARATOR + sp.getSceneType()
                         + ProjectConstants.SEPARATOR + sceneScore
                         + ProjectConstants.SEPARATOR + targetEvaluate
                         + ProjectConstants.SEPARATOR + sp.getScoreExplain()
-                        + ProjectConstants.SEPARATOR + sp.getTimeActual()
-                        + ProjectConstants.SEPARATOR + sp.getTimeCorrection();
+                        + ProjectConstants.SEPARATOR + timeActual
+                        + ProjectConstants.SEPARATOR + timeCorrection;
             }
             // 将字符穿序列分割
             List<String> strings = CollectionUtil.createArrayList(sublistName.split(ProjectConstants.SEPARATOR));