|
@@ -11,8 +11,8 @@ import java.util.List;
|
|
|
|
|
|
@Mapper
|
|
@Mapper
|
|
public interface MultiSimulationSceneCarMapper {
|
|
public interface MultiSimulationSceneCarMapper {
|
|
- @Insert("insert into multi_simulation_scene_car (id,scene_id,car_id,algorithm_id,path_id,path_start,path_end,path_start_point,path_end_point,car_sort,is_simulation_car) values" +
|
|
|
|
- "(#{sceneCarId},#{sceneId},#{carId},#{algorithmId},#{pathId},#{pathStart},#{pathEnd},#{pathStartPoint},#{pathEndPoint},#{carSort},#{isSimulationCar})")
|
|
|
|
|
|
+ @Insert("insert into multi_simulation_scene_car (id,scene_id,car_id,algorithm_id,algorithm_type,path_id,path_start,path_end,path_start_point,path_end_point,car_sort,is_simulation_car) values" +
|
|
|
|
+ "(#{sceneCarId},#{sceneId},#{carId},#{algorithmId},#{algorithmType},#{pathId},#{pathStart},#{pathEnd},#{pathStartPoint},#{pathEndPoint},#{carSort},#{isSimulationCar})")
|
|
int addMultiSimulationSceneCar(MultiSimulationSceneCarParam param);
|
|
int addMultiSimulationSceneCar(MultiSimulationSceneCarParam param);
|
|
|
|
|
|
@Select("select count(*) from multi_simulation_scene_car where scene_id = #{sceneId} and deleted = 0")
|
|
@Select("select count(*) from multi_simulation_scene_car where scene_id = #{sceneId} and deleted = 0")
|
|
@@ -20,7 +20,7 @@ public interface MultiSimulationSceneCarMapper {
|
|
|
|
|
|
|
|
|
|
@Update("<script>" +
|
|
@Update("<script>" +
|
|
- "update multi_simulation_scene_car set car_id = #{carId},algorithm_id = #{algorithmId}, path_id = #{pathId}," +
|
|
|
|
|
|
+ "update multi_simulation_scene_car set car_id = #{carId},algorithm_id = #{algorithmId}, algorithm_type = #{algorithmType}, path_id = #{pathId}," +
|
|
"path_start = #{pathStart},path_end = #{pathEnd},path_start_point = #{pathStartPoint},path_end_point = #{pathEndPoint},car_sort = #{carSort} " +
|
|
"path_start = #{pathStart},path_end = #{pathEnd},path_start_point = #{pathStartPoint},path_end_point = #{pathEndPoint},car_sort = #{carSort} " +
|
|
"where id = #{sceneCarId}" +
|
|
"where id = #{sceneCarId}" +
|
|
"</script>")
|
|
"</script>")
|
|
@@ -36,14 +36,14 @@ public interface MultiSimulationSceneCarMapper {
|
|
int deleteMultiSimulationSceneCar(MultiSimulationSceneCarParam param);
|
|
int deleteMultiSimulationSceneCar(MultiSimulationSceneCarParam param);
|
|
//
|
|
//
|
|
@Select("<script>" +
|
|
@Select("<script>" +
|
|
- "select id,sceneId,carId,algorithmId,pathId,pathStart,pathEnd,pathStartPoint,pathEndPoint,carSort,createTime from multi_simulation_scene_car where deleted = 0 " +
|
|
|
|
|
|
+ "select id,scene_id,car_id,algorithm_id,algorithm_type,path_id,path_start,path_end,path_start_point,path_end_point,car_sort,create_time from multi_simulation_scene_car where deleted = 0 " +
|
|
"and scene_id = #{sceneId}" +
|
|
"and scene_id = #{sceneId}" +
|
|
"order by carSort, create_time desc" +
|
|
"order by carSort, create_time desc" +
|
|
"</script>")
|
|
"</script>")
|
|
List<MultiSimulationSceneCarVO> selectSceneCarList(MultiSimulationSceneCarParam param);
|
|
List<MultiSimulationSceneCarVO> selectSceneCarList(MultiSimulationSceneCarParam param);
|
|
|
|
|
|
@Select("<script>" +
|
|
@Select("<script>" +
|
|
- "select id,sceneId,carId,algorithmId,pathId,pathStart,pathEnd,pathStartPoint,pathEndPoint,carSort,createTime from multi_simulation_scene_car where deleted = 0 " +
|
|
|
|
|
|
+ "select id,scene_id,car_id,algorithm_id,algorithm_type,path_id,path_start,path_end,path_start_point,path_end_point,car_sort,create_time from multi_simulation_scene_car where deleted = 0 " +
|
|
"and id = #{sceneCarId}" +
|
|
"and id = #{sceneCarId}" +
|
|
"</script>")
|
|
"</script>")
|
|
MultiSimulationSceneCarVO selectSceneCarById(MultiSimulationSceneCarParam param);
|
|
MultiSimulationSceneCarVO selectSceneCarById(MultiSimulationSceneCarParam param);
|