Browse Source

项目详情

LingxinMeng 2 years ago
parent
commit
eecf972e47

+ 0 - 5
simulation-resource-server/src/main/java/com/css/simulation/resource/project/mapper/AutoSubProjectMapper.java

@@ -31,9 +31,4 @@ public interface AutoSubProjectMapper {
             "where id = #{projectId}")
             "where id = #{projectId}")
     void updateDetailsById(@Param("projectId") String projectId, @Param("details") String details);
     void updateDetailsById(@Param("projectId") String projectId, @Param("details") String details);
 
 
-    @Select("select details\n" +
-            "from simulation_automatic_subproject\n" +
-            "where id = #{projectId}")
-    String selectDetailsById(@Param("projectId") String projectId);
-
 }
 }

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

@@ -275,7 +275,10 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
 
 
             if (DictConstants.PROJECT_COMPLETED.equals(po.getNowRunState())) {  //3 已经完成的项目再次运行
             if (DictConstants.PROJECT_COMPLETED.equals(po.getNowRunState())) {  //3 已经完成的项目再次运行
                 //1 查询项目详情信息并保存,固定项目最原始的运行数据
                 //1 查询项目详情信息并保存,固定项目最原始的运行数据
-                po.setDetails(JsonUtil.beanToJson(selectProjectDetailsByIdBeforeRunning(SimulationManualProjectParam.builder().id(po.getId()).projectType(DictConstants.PROJECT_TYPE_MANUAL).build()).getInfo()));
+                final ProjectDetailsVO projectDetailsVO = selectProjectDetailsByIdBeforeRunning(SimulationManualProjectParam.builder().id(po.getId()).projectType(DictConstants.PROJECT_TYPE_MANUAL).build()).getInfo();
+                projectDetailsVO.setAlgorithmScoreList(new ArrayList<>());
+                projectDetailsVO.setNowRunState(DictConstants.PROJECT_RUNNING);
+                po.setDetails(JsonUtil.beanToJson(projectDetailsVO));
                 //2 初始化数据
                 //2 初始化数据
                 po.setNowRunState(param.getNowRunState());
                 po.setNowRunState(param.getNowRunState());
                 po.setEvaluationLevel("");
                 po.setEvaluationLevel("");