|
@@ -16,10 +16,11 @@
|
|
|
<result column="container_id" jdbcType="VARCHAR" property="containerId" />
|
|
|
<result column="runfile_name" jdbcType="VARCHAR" property="runfileName" />
|
|
|
<result column="ip_address" jdbcType="VARCHAR" property="ipAddress" />
|
|
|
+ <result column="has_run" jdbcType="INTEGER" property="hasRun" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
algorithm_training_id, miss_name, alg_frame_id, category_id, miss_status, miss_creation_time, miss_stop_time, remark,
|
|
|
- uid, algorithm_id, version_id, container_id, runfile_name, ip_address
|
|
|
+ uid, algorithm_id, version_id, container_id, runfile_name, ip_address, has_run
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -41,11 +42,11 @@
|
|
|
insert into algorithm_training (algorithm_training_id, miss_name, alg_frame_id, category_id,
|
|
|
miss_status, miss_creation_time, miss_stop_time, remark,
|
|
|
uid, algorithm_id, version_id,
|
|
|
- container_id,runfile_name,ip_address)
|
|
|
+ container_id,runfile_name,ip_address, has_run)
|
|
|
values (#{algorithmTrainingId,jdbcType=BIGINT}, #{missName,jdbcType=VARCHAR}, #{algFrameId,jdbcType=BIGINT}, #{categoryId,jdbcType=BIGINT},
|
|
|
#{missStatus,jdbcType=TINYINT}, #{missCreationTime,jdbcType=TIMESTAMP}, #{missStopTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR},
|
|
|
#{uid,jdbcType=BIGINT}, #{algorithmId,jdbcType=BIGINT}, #{versionId,jdbcType=BIGINT},
|
|
|
- #{containerId,jdbcType=VARCHAR},#{runfileName,jdbcType=VARCHAR},#{ipAddress,jdbcType=VARCHAR})
|
|
|
+ #{containerId,jdbcType=VARCHAR},#{runfileName,jdbcType=VARCHAR},#{ipAddress,jdbcType=VARCHAR}, #{hasRun,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="io.renren.modules.sys.entity.algs.AlgTrain">
|
|
|
insert into algorithm_training
|
|
@@ -92,6 +93,9 @@
|
|
|
<if test="ipAddress != null">
|
|
|
ip_address,
|
|
|
</if>
|
|
|
+ <if test="hasRun != null">
|
|
|
+ has_run,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="algorithmTrainingId != null">
|
|
@@ -136,6 +140,9 @@
|
|
|
<if test="ipAddress != null">
|
|
|
#{ipAddress,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="hasRun != null">
|
|
|
+ #{hasRun,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="io.renren.modules.sys.entity.algs.AlgTrain">
|
|
@@ -180,6 +187,9 @@
|
|
|
<if test="ipAddress !=null">
|
|
|
ip_address = #{ipAddress,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="hasRun !=null">
|
|
|
+ has_run = #{hasRun,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where algorithm_training_id = #{algorithmTrainingId,jdbcType=BIGINT}
|
|
|
</update>
|
|
@@ -197,7 +207,8 @@
|
|
|
version_id = #{versionId,jdbcType=BIGINT},
|
|
|
container_id = #{containerId,jdbcType=VARCHAR},
|
|
|
runfile_name=#{runfileName,jdbcType=VARCHAR},
|
|
|
- ip_address = #{ipAddress,jdbcType=VARCHAR}
|
|
|
+ ip_address = #{ipAddress,jdbcType=VARCHAR},
|
|
|
+ has_run = #{hasRun,jdbcType=INTEGER}
|
|
|
where algorithm_training_id = #{algorithmTrainingId,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|