|
|
@@ -24,6 +24,7 @@
|
|
|
<result property="checkDuration" column="check_duration" jdbcType="DOUBLE"/>
|
|
|
<result property="checkStatus" column="check_status" jdbcType="INTEGER"/>
|
|
|
<result property="tianheUrl" column="tianhe_url" jdbcType="VARCHAR"/>
|
|
|
+ <result property="tianheType" column="tianhe_type" jdbcType="INTEGER"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
@@ -33,7 +34,7 @@
|
|
|
duration,examine_id,examine_time,
|
|
|
examine_name,record_time,examine_content,
|
|
|
init_duration,check_duration,check_status,
|
|
|
- tianhe_url
|
|
|
+ tianhe_url,tianhe_type
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
@@ -55,14 +56,14 @@
|
|
|
,duration,examine_id,examine_time
|
|
|
,examine_name,record_time,examine_content
|
|
|
,init_duration,check_duration,check_status
|
|
|
- ,tianhe_url)
|
|
|
+ ,tianhe_url,tianhe_type)
|
|
|
values (#{id,jdbcType=BIGINT},#{pid,jdbcType=BIGINT},#{aid,jdbcType=BIGINT}
|
|
|
,#{name,jdbcType=VARCHAR},#{projectStatus,jdbcType=INTEGER},#{content,jdbcType=VARCHAR}
|
|
|
,#{annexUrl,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{processStatus,jdbcType=INTEGER}
|
|
|
,#{duration,jdbcType=DOUBLE},#{examineId,jdbcType=BIGINT},#{examineTime,jdbcType=TIMESTAMP}
|
|
|
,#{examineName,jdbcType=VARCHAR},#{recordTime,jdbcType=TIMESTAMP},#{examineContent,jdbcType=VARCHAR}
|
|
|
,#{initDuration,jdbcType=DOUBLE},#{checkDuration,jdbcType=DOUBLE},#{checkStatus,jdbcType=INTEGER}
|
|
|
- ,#{tianheUrl,jdbcType=VARCHAR})
|
|
|
+ ,#{tianheUrl,jdbcType=VARCHAR},#{tianheType,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.ruoyi.project.domain.ProjectStaffRecord" useGeneratedKeys="true">
|
|
|
insert into project_staff_record
|
|
|
@@ -86,6 +87,7 @@
|
|
|
<if test="checkDuration != null">check_duration,</if>
|
|
|
<if test="checkStatus != null">check_status,</if>
|
|
|
<if test="tianheUrl != null">tianhe_url,</if>
|
|
|
+ <if test="tianheType != null">tianhe_type,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id,jdbcType=BIGINT},</if>
|
|
|
@@ -107,6 +109,7 @@
|
|
|
<if test="checkDuration != null">#{checkDuration,jdbcType=DOUBLE},</if>
|
|
|
<if test="checkStatus != null">#{checkStatus,jdbcType=INTEGER},</if>
|
|
|
<if test="tianheUrl != null">#{tianheUrl,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="tianheType != null">#{tianheType,jdbcType=INTEGER},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ruoyi.project.domain.ProjectStaffRecord">
|
|
|
@@ -166,6 +169,9 @@
|
|
|
<if test="tianheUrl != null">
|
|
|
tianhe_url = #{tianheUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="tianheType != null">
|
|
|
+ tianhe_type = #{tianheType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
@@ -189,7 +195,8 @@
|
|
|
init_duration = #{initDuration,jdbcType=DOUBLE},
|
|
|
check_duration = #{checkDuration,jdbcType=DOUBLE},
|
|
|
check_status = #{checkStatus,jdbcType=INTEGER},
|
|
|
- tianhe_url = #{tianheUrl,jdbcType=VARCHAR}
|
|
|
+ tianhe_url = #{tianheUrl,jdbcType=VARCHAR},
|
|
|
+ tianhe_type = #{tianheType,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
<select id="selectList" resultType="com.ruoyi.project.bo.ProjectStaffRecordOut">
|
|
|
@@ -325,5 +332,14 @@
|
|
|
#{e}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
+ <update id="updateTianheType">
|
|
|
+ update project_staff_record
|
|
|
+ set tianhe_type=1
|
|
|
+ where tianhe_type=0
|
|
|
+ and id in
|
|
|
+ <foreach collection="collect" open="(" close=")" separator="," item="e">
|
|
|
+ #{e.id}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
|
|
|
</mapper>
|