|
@@ -2,10 +2,7 @@ package com.css.simulation.resource.scheduler.mapper;
|
|
|
|
|
|
|
|
|
import com.css.simulation.resource.scheduler.pojo.po.TaskIndexPO;
|
|
|
-import org.apache.ibatis.annotations.Delete;
|
|
|
-import org.apache.ibatis.annotations.Insert;
|
|
|
-import org.apache.ibatis.annotations.Mapper;
|
|
|
-import org.apache.ibatis.annotations.Param;
|
|
|
+import org.apache.ibatis.annotations.*;
|
|
|
|
|
|
/**
|
|
|
* 任务指标
|
|
@@ -56,12 +53,24 @@ public interface TaskIndexMapper {
|
|
|
" #{first.modifyTime},\n" +
|
|
|
" #{first.modifyUserId},\n" +
|
|
|
" #{first.isDeleted})")
|
|
|
- void insertFirstIndex(@Param("first")TaskIndexPO firstTaskIndex);
|
|
|
+ void insertFirstIndex(@Param("first") TaskIndexPO firstTaskIndex);
|
|
|
+
|
|
|
+ @Select("select sublist_id\n" +
|
|
|
+ "from scene_package_sublist\n" +
|
|
|
+ "where root_id =\n" +
|
|
|
+ " (select scene\n" +
|
|
|
+ " from simulation_manual_project smp\n" +
|
|
|
+ " where id = #{projectId})\n" +
|
|
|
+ "and (scene_natural_ids like #{idExtend}\n" +
|
|
|
+ " or scene_traffic_ids like #{idExtend}\n" +
|
|
|
+ " or scene_statue_ids like #{idExtend}\n" +
|
|
|
+ " )\n")
|
|
|
+ String selectIndexIdByProjectAndSceneId(@Param("projectId") String projectId, @Param("idExtend") String idExtend);
|
|
|
|
|
|
|
|
|
@Delete("delete from simulation_mpt_first_target_score where p_id = #{projectId}")
|
|
|
- void deleteFirstByProjectId(@Param("projectId")String projectId);
|
|
|
+ void deleteFirstByProjectId(@Param("projectId") String projectId);
|
|
|
|
|
|
@Delete("delete from simulation_mpt_last_target_score where p_id = #{projectId}")
|
|
|
- void deleteLastByProjectId(@Param("projectId")String projectId);
|
|
|
+ void deleteLastByProjectId(@Param("projectId") String projectId);
|
|
|
}
|