|
@@ -18,10 +18,11 @@
|
|
|
<result column="ip_address" jdbcType="VARCHAR" property="ipAddress" />
|
|
|
<result column="has_run" jdbcType="INTEGER" property="hasRun" />
|
|
|
<result column="log_file" jdbcType="VARCHAR" property="logFile" />
|
|
|
+ <result column="platform_id" jdbcType="VARCHAR" property="platformId" />
|
|
|
</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, has_run, log_file
|
|
|
+ uid, algorithm_id, version_id, container_id, runfile_name, ip_address, has_run, log_file, platform_id
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -35,21 +36,28 @@
|
|
|
from algorithm_training
|
|
|
where miss_name = #{missName,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
+ <select id="selectByMissNameAndPlatformId" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from algorithm_training
|
|
|
+ where platform_id = #{platformId} and miss_name = #{missName,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
delete from algorithm_training
|
|
|
where algorithm_training_id = #{algorithmTrainingId,jdbcType=BIGINT}
|
|
|
</delete>
|
|
|
- <insert id="insert" parameterType="io.renren.modules.sys.entity.algs.AlgTrain">
|
|
|
+ <insert id="insert" useGeneratedKeys="true" keyProperty="algorithmTrainingId" parameterType="io.renren.modules.sys.entity.algs.AlgTrain">
|
|
|
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, has_run, log_file)
|
|
|
+ container_id,runfile_name,ip_address, has_run, log_file, platform_id)
|
|
|
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}, #{hasRun,jdbcType=INTEGER},#{logFile,jdbcType=VARCHAR})
|
|
|
+ #{containerId,jdbcType=VARCHAR},#{runfileName,jdbcType=VARCHAR},#{ipAddress,jdbcType=VARCHAR}, #{hasRun,jdbcType=INTEGER},#{logFile,jdbcType=VARCHAR},
|
|
|
+ #{platformId,jdbcType=BIGINT})
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" parameterType="io.renren.modules.sys.entity.algs.AlgTrain">
|
|
|
+ <insert id="insertSelective" useGeneratedKeys="true" keyProperty="algorithmTrainingId" parameterType="io.renren.modules.sys.entity.algs.AlgTrain">
|
|
|
insert into algorithm_training
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="algorithmTrainingId != null">
|
|
@@ -100,6 +108,9 @@
|
|
|
<if test="logFile != null">
|
|
|
log_file,
|
|
|
</if>
|
|
|
+ <if test="platformId != null">
|
|
|
+ platform_id,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="algorithmTrainingId != null">
|
|
@@ -148,7 +159,10 @@
|
|
|
#{hasRun,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="logFile != null">
|
|
|
- #{logFile,jdbcType=INTEGER},
|
|
|
+ #{logFile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="platformId != null">
|
|
|
+ #{aplatformId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
@@ -198,7 +212,10 @@
|
|
|
has_run = #{hasRun,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="logFile !=null">
|
|
|
- log_file = #{logFile,jdbcType=INTEGER},
|
|
|
+ log_file = #{logFile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="platformId !=null">
|
|
|
+ platform_id = #{platformId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
</set>
|
|
|
where algorithm_training_id = #{algorithmTrainingId,jdbcType=BIGINT}
|
|
@@ -219,7 +236,8 @@
|
|
|
runfile_name=#{runfileName,jdbcType=VARCHAR},
|
|
|
ip_address = #{ipAddress,jdbcType=VARCHAR},
|
|
|
has_run = #{hasRun,jdbcType=INTEGER},
|
|
|
- log_file = #{logFile,jdbcType=VARCHAR}
|
|
|
+ log_file = #{logFile,jdbcType=VARCHAR},
|
|
|
+ platform_id = #{platformId,jdbcType=BIGINT},
|
|
|
where algorithm_training_id = #{algorithmTrainingId,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|