|
|
@@ -7,18 +7,22 @@
|
|
|
<resultMap id="BaseResultMap" type="com.ruoyi.system.domain.UserRecord">
|
|
|
<id property="id" column="id" jdbcType="BIGINT"/>
|
|
|
<result property="psrId" column="psr_id" jdbcType="BIGINT"/>
|
|
|
+ <result property="name" column="name" jdbcType="VARCHAR"/>
|
|
|
<result property="status" column="status" jdbcType="INTEGER"/>
|
|
|
<result property="content" column="content" jdbcType="VARCHAR"/>
|
|
|
<result property="recordTime" column="record_time" jdbcType="TIMESTAMP"/>
|
|
|
<result property="startTime" column="start_time" jdbcType="TIMESTAMP"/>
|
|
|
<result property="endTime" column="end_time" jdbcType="TIMESTAMP"/>
|
|
|
- <result property="duration" column="duration" jdbcType="DOUBLE"/>
|
|
|
+ <result property="sumDuration" column="sum_duration" jdbcType="DOUBLE"/>
|
|
|
+ <result property="checkDuration" column="check_duration" jdbcType="DOUBLE"/>
|
|
|
+ <result property="createId" column="create_id" jdbcType="BIGINT"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
- id,psr_id,status,
|
|
|
- content,record_time,start_time,
|
|
|
- end_time,duration
|
|
|
+ id,psr_id,name,
|
|
|
+ status,content,record_time,
|
|
|
+ start_time,end_time,sum_duration,
|
|
|
+ check_duration,create_id
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
@@ -34,42 +38,54 @@
|
|
|
</delete>
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.ruoyi.system.domain.UserRecord" useGeneratedKeys="true">
|
|
|
insert into user_record
|
|
|
- ( id,psr_id,status
|
|
|
- ,content,record_time,start_time
|
|
|
- ,end_time,duration)
|
|
|
- values (#{id,jdbcType=BIGINT},#{psrId,jdbcType=BIGINT},#{status,jdbcType=INTEGER}
|
|
|
- ,#{content,jdbcType=VARCHAR},#{recordTime,jdbcType=TIMESTAMP},#{startTime,jdbcType=TIMESTAMP}
|
|
|
- ,#{endTime,jdbcType=TIMESTAMP},#{duration,jdbcType=DOUBLE})
|
|
|
+ ( id,psr_id,name
|
|
|
+ ,status,content,record_time
|
|
|
+ ,start_time,end_time,sum_duration
|
|
|
+ ,check_duration,create_id)
|
|
|
+ values (#{id,jdbcType=BIGINT},#{psrId,jdbcType=BIGINT},#{name,jdbcType=VARCHAR}
|
|
|
+ ,#{status,jdbcType=INTEGER},#{content,jdbcType=VARCHAR},#{recordTime,jdbcType=TIMESTAMP}
|
|
|
+ ,#{startTime,jdbcType=TIMESTAMP},#{endTime,jdbcType=TIMESTAMP},#{sumDuration,jdbcType=DOUBLE}
|
|
|
+ ,#{checkDuration,jdbcType=DOUBLE},#{createId,jdbcType=BIGINT})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.ruoyi.system.domain.UserRecord" useGeneratedKeys="true">
|
|
|
insert into user_record
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">id,</if>
|
|
|
<if test="psrId != null">psr_id,</if>
|
|
|
+ <if test="name != null">name,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
<if test="content != null">content,</if>
|
|
|
<if test="recordTime != null">record_time,</if>
|
|
|
<if test="startTime != null">start_time,</if>
|
|
|
<if test="endTime != null">end_time,</if>
|
|
|
- <if test="duration != null">duration,</if>
|
|
|
+ <if test="sumDuration != null">sum_duration,</if>
|
|
|
+ <if test="checkDuration != null">check_duration,</if>
|
|
|
+ <if test="createId != null">create_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id,jdbcType=BIGINT},</if>
|
|
|
<if test="psrId != null">#{psrId,jdbcType=BIGINT},</if>
|
|
|
+ <if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
|
|
<if test="status != null">#{status,jdbcType=INTEGER},</if>
|
|
|
<if test="content != null">#{content,jdbcType=VARCHAR},</if>
|
|
|
<if test="recordTime != null">#{recordTime,jdbcType=TIMESTAMP},</if>
|
|
|
<if test="startTime != null">#{startTime,jdbcType=TIMESTAMP},</if>
|
|
|
<if test="endTime != null">#{endTime,jdbcType=TIMESTAMP},</if>
|
|
|
- <if test="duration != null">#{duration,jdbcType=DOUBLE},</if>
|
|
|
+ <if test="sumDuration != null">#{sumDuration,jdbcType=DOUBLE},</if>
|
|
|
+ <if test="checkDuration != null">#{checkDuration,jdbcType=DOUBLE},</if>
|
|
|
+ <if test="createId != null">#{createId,jdbcType=BIGINT},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
+
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ruoyi.system.domain.UserRecord">
|
|
|
update user_record
|
|
|
<set>
|
|
|
<if test="psrId != null">
|
|
|
psr_id = #{psrId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="name != null">
|
|
|
+ name = #{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -85,8 +101,14 @@
|
|
|
<if test="endTime != null">
|
|
|
end_time = #{endTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="duration != null">
|
|
|
- duration = #{duration,jdbcType=DOUBLE},
|
|
|
+ <if test="sumDuration != null">
|
|
|
+ sum_duration = #{sumDuration,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="checkDuration != null">
|
|
|
+ check_duration = #{checkDuration,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="createId != null">
|
|
|
+ create_id = #{createId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
@@ -95,12 +117,15 @@
|
|
|
update user_record
|
|
|
set
|
|
|
psr_id = #{psrId,jdbcType=BIGINT},
|
|
|
+ name = #{name,jdbcType=VARCHAR},
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
content = #{content,jdbcType=VARCHAR},
|
|
|
record_time = #{recordTime,jdbcType=TIMESTAMP},
|
|
|
start_time = #{startTime,jdbcType=TIMESTAMP},
|
|
|
end_time = #{endTime,jdbcType=TIMESTAMP},
|
|
|
- duration = #{duration,jdbcType=DOUBLE}
|
|
|
+ sum_duration = #{sumDuration,jdbcType=DOUBLE},
|
|
|
+ check_duration = #{checkDuration,jdbcType=DOUBLE},
|
|
|
+ create_id = #{createId,jdbcType=BIGINT}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|