|
@@ -1,12 +1,12 @@
|
|
package com.css.simulation.resource.scheduler.mapper;
|
|
package com.css.simulation.resource.scheduler.mapper;
|
|
|
|
|
|
|
|
|
|
|
|
+import api.common.pojo.po.scheduler.SchedulerProjectPO;
|
|
import com.css.simulation.resource.scheduler.entity.ProjectEntity;
|
|
import com.css.simulation.resource.scheduler.entity.ProjectEntity;
|
|
import org.apache.ibatis.annotations.*;
|
|
import org.apache.ibatis.annotations.*;
|
|
import org.apache.ibatis.type.JdbcType;
|
|
import org.apache.ibatis.type.JdbcType;
|
|
|
|
|
|
import java.sql.Timestamp;
|
|
import java.sql.Timestamp;
|
|
-import java.util.List;
|
|
|
|
|
|
|
|
@Mapper
|
|
@Mapper
|
|
public interface AutoSubProjectMapper {
|
|
public interface AutoSubProjectMapper {
|
|
@@ -31,14 +31,6 @@ public interface AutoSubProjectMapper {
|
|
"where sas.id = #{projectId}")
|
|
"where sas.id = #{projectId}")
|
|
ProjectEntity selectById(@Param("projectId") String projectId);
|
|
ProjectEntity selectById(@Param("projectId") String projectId);
|
|
|
|
|
|
- @ResultMap("project")
|
|
|
|
- @Select("select sas.id, sap.scene, sas.create_user_id, sap.parallelism, '2' project_type\n" +
|
|
|
|
- "from simulation_automatic_subproject sas\n" +
|
|
|
|
- " left join simulation_automatic_project sap on sas.parent_id = sap.id\n" +
|
|
|
|
- "where sas.is_deleted = '0'\n" +
|
|
|
|
- " and sas.now_run_state = #{nowRunState}")
|
|
|
|
- List<ProjectEntity> selectByNowRunState(@Param("nowRunState") String nowRunState);
|
|
|
|
-
|
|
|
|
@Select("select create_user_id\n" +
|
|
@Select("select create_user_id\n" +
|
|
"from simulation_automatic_subproject\n" +
|
|
"from simulation_automatic_subproject\n" +
|
|
"where id = #{subProjectId}")
|
|
"where id = #{subProjectId}")
|
|
@@ -51,9 +43,9 @@ public interface AutoSubProjectMapper {
|
|
"where id = #{id}")
|
|
"where id = #{id}")
|
|
void updateProjectState(@Param("id") String id, @Param("state") String state, @Param("finishTime") Timestamp finishTime);
|
|
void updateProjectState(@Param("id") String id, @Param("state") String state, @Param("finishTime") Timestamp finishTime);
|
|
|
|
|
|
- @Select("select is_choice_gpu\n" +
|
|
|
|
- "from simulation_automatic_subproject\n" +
|
|
|
|
- "where id = #{projectId}")
|
|
|
|
- String selectIsChoiceGpuById(@Param("projectId") String projectId);
|
|
|
|
|
|
|
|
|
|
+ @Update("update simulation_automatic_subproject\n" +
|
|
|
|
+ "set error_message = #{errorMessage}\n" +
|
|
|
|
+ "where project_id = #{id}\n")
|
|
|
|
+ void saveErrorMessage(SchedulerProjectPO schedulerProjectPO);
|
|
}
|
|
}
|