|
|
@@ -6,6 +6,7 @@
|
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.ruoyi.system.domain.UserRecord">
|
|
|
<id property="id" column="id" jdbcType="BIGINT"/>
|
|
|
+ <result property="ddUserId" column="dd_user_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"/>
|
|
|
@@ -19,10 +20,10 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
- id,psr_id,name,
|
|
|
- status,content,record_time,
|
|
|
- start_time,end_time,sum_duration,
|
|
|
- check_duration,create_id
|
|
|
+ id,dd_user_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">
|
|
|
@@ -32,26 +33,28 @@
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</select>
|
|
|
|
|
|
-
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
delete from user_record
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</delete>
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.ruoyi.system.domain.UserRecord" useGeneratedKeys="true">
|
|
|
insert into user_record
|
|
|
- ( 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})
|
|
|
+ ( id,dd_user_id,psr_id
|
|
|
+ ,name,status,content
|
|
|
+ ,record_time,start_time,end_time
|
|
|
+ ,sum_duration,check_duration,create_id
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=BIGINT},#{ddUserId,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="ddUserId != null">dd_user_id,</if>
|
|
|
<if test="psrId != null">psr_id,</if>
|
|
|
<if test="name != null">name,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
@@ -65,6 +68,7 @@
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id,jdbcType=BIGINT},</if>
|
|
|
+ <if test="ddUserId != null">#{ddUserId,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>
|
|
|
@@ -77,10 +81,12 @@
|
|
|
<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="ddUserId != null">
|
|
|
+ dd_user_id = #{ddUserId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
<if test="psrId != null">
|
|
|
psr_id = #{psrId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
@@ -117,6 +123,7 @@
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ruoyi.system.domain.UserRecord">
|
|
|
update user_record
|
|
|
set
|
|
|
+ dd_user_id = #{ddUserId,jdbcType=BIGINT},
|
|
|
psr_id = #{psrId,jdbcType=BIGINT},
|
|
|
name = #{name,jdbcType=VARCHAR},
|
|
|
status = #{status,jdbcType=INTEGER},
|