|
@@ -13,7 +13,7 @@
|
|
<!--根据条件查询工作信息-->
|
|
<!--根据条件查询工作信息-->
|
|
<select id="selectAutomaticProjectByQuery" parameterType="api.common.pojo.param.project.SimulationManualProjectParam" resultType="api.common.pojo.po.project.SimulationAutomaticProjectPo">
|
|
<select id="selectAutomaticProjectByQuery" parameterType="api.common.pojo.param.project.SimulationManualProjectParam" resultType="api.common.pojo.po.project.SimulationAutomaticProjectPo">
|
|
select * from simulation_automatic_project
|
|
select * from simulation_automatic_project
|
|
- is_deleted = '0'
|
|
|
|
|
|
+ where is_deleted = '0'
|
|
<if test="projectName != null and projectName != ''">
|
|
<if test="projectName != null and projectName != ''">
|
|
and project_name = #{projectName,jdbcType=VARCHAR}
|
|
and project_name = #{projectName,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
@@ -28,6 +28,30 @@
|
|
limit 1
|
|
limit 1
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <!--查询自动项目列表-->
|
|
|
|
+ <select id="selecAutomatictProjectList" parameterType="api.common.pojo.param.project.SimulationManualProjectParam" resultType="api.common.pojo.vo.project.SimulationManualProjectVo">
|
|
|
|
+ select * from simulation_automatic_project
|
|
|
|
+ <where>
|
|
|
|
+ is_deleted = '0'
|
|
|
|
+ <if test="projectId != null and projectId != ''">
|
|
|
|
+ and project_id like CONCAT('%',#{projectId,jdbcType=VARCHAR},'%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="projectName != null and projectName != ''">
|
|
|
|
+ and project_name like CONCAT('%',#{projectName,jdbcType=VARCHAR},'%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createTimeStart != null">
|
|
|
|
+ and create_time >= #{createTimeStart,jdbcType=TIMESTAMP}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createTimeEnd != null">
|
|
|
|
+ and create_time <= #{createTimeEnd,jdbcType=TIMESTAMP}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createUserId != null and createUserId != ''">
|
|
|
|
+ and create_user_id = #{createUserId,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ order by project_date desc, project_num desc, modify_time desc
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<!--创建项目信息-->
|
|
<!--创建项目信息-->
|
|
<insert id="add" parameterType="api.common.pojo.po.project.SimulationAutomaticProjectPo">
|
|
<insert id="add" parameterType="api.common.pojo.po.project.SimulationAutomaticProjectPo">
|
|
insert into simulation_automatic_project
|
|
insert into simulation_automatic_project
|
|
@@ -92,16 +116,19 @@
|
|
algorithm_type = #{algorithmType,jdbcType=VARCHAR},
|
|
algorithm_type = #{algorithmType,jdbcType=VARCHAR},
|
|
vehicle = #{vehicle,jdbcType=VARCHAR},
|
|
vehicle = #{vehicle,jdbcType=VARCHAR},
|
|
scene = #{scene,jdbcType=VARCHAR},
|
|
scene = #{scene,jdbcType=VARCHAR},
|
|
- operation_cycle = #{operation_cycle,jdbcType=VARCHAR},
|
|
|
|
|
|
+ operation_cycle = #{operationCycle,jdbcType=VARCHAR},
|
|
parallelism = #{parallelism,jdbcType=VARCHAR},
|
|
parallelism = #{parallelism,jdbcType=VARCHAR},
|
|
- is_choice_gpu = #{isChoiceGpu,jdbcType=VARCHAR}
|
|
|
|
|
|
+ rule_view = #{ruleView,jdbcType=VARCHAR},
|
|
|
|
+ is_choice_gpu = #{isChoiceGpu,jdbcType=VARCHAR},
|
|
|
|
+ modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
|
+ modify_user_id = #{modifyUserId,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR} and is_deleted = '0'
|
|
where id = #{id,jdbcType=VARCHAR} and is_deleted = '0'
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
|
|
- <!--查询项目状态-->
|
|
|
|
|
|
+ <!--查询项目自动运行状态-->
|
|
<select id="selectProjectNowRunState" resultType="api.common.pojo.po.project.SimulationAutomaticProjectPo">
|
|
<select id="selectProjectNowRunState" resultType="api.common.pojo.po.project.SimulationAutomaticProjectPo">
|
|
- select now_run_state
|
|
|
|
|
|
+ select automatic_run_state
|
|
from simulation_automatic_project
|
|
from simulation_automatic_project
|
|
where
|
|
where
|
|
is_deleted='0' and
|
|
is_deleted='0' and
|
|
@@ -122,6 +149,39 @@
|
|
|
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
+ <!--修改自动运行状态-->
|
|
|
|
+ <update id="updateAutomaticRunState" parameterType="api.common.pojo.param.project.SimulationManualProjectParam">
|
|
|
|
+ update simulation_automatic_project
|
|
|
|
+ set automatic_run_state=#{automaticRunState,jdbcType=VARCHAR}
|
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+ <!--修改自动运行次数-->
|
|
|
|
+ <update id="updateAutomaticRunTimes" parameterType="api.common.pojo.po.project.SimulationAutomaticProjectPo">
|
|
|
|
+ update simulation_automatic_project
|
|
|
|
+ set automatic_Run_Times=#{automaticRunTimes,jdbcType=BIGINT}
|
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+ <!--自动运行项目详细页面信息-->
|
|
|
|
+ <select id="selectAutomaticProjectInfoById" parameterType="string" resultType="api.common.pojo.vo.project.AutomaticProjectVo">
|
|
|
|
+ select p.id, p.project_name, p.project_describe, p.operation_cycle, p.parallelism, p.is_choice_gpu, p.vehicle, a.algorithm_name, s.package_name as sceneName
|
|
|
|
+ from simulation_automatic_project p
|
|
|
|
+ left join algorithm a on p.algorithm = a.id
|
|
|
|
+ left join scene_package s on p.scene = s.package_id
|
|
|
|
+ where p.id = #{id,jdbcType=VARCHAR} and p.is_deleted = '0'
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <!--根据算法id获取算法git版本号信息-->
|
|
|
|
+ <select id="getAlgorithmGitVersion" parameterType="api.common.pojo.po.algorithm.AlgorithmPO" resultType="api.common.pojo.po.algorithm.AlgorithmPO">
|
|
|
|
+ select id,git_version from algorithm where id=#{id}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <!--更新算法版本号-->
|
|
|
|
+ <update id="updateAlgorithmGitVersion" parameterType="api.common.pojo.po.algorithm.AlgorithmPO">
|
|
|
|
+ update algorithm set git_version=#{gitVersion} where id=#{id}
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|