id,dd_user_id,psr_id,
name,status,clock_status,
content,record_time,start_time,
end_time,sum_duration,check_duration,
create_id
delete from user_record
where id = #{id,jdbcType=BIGINT}
insert into user_record
( id,dd_user_id,psr_id
,name,status,clock_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},#{clockStatus,jdbcType=INTEGER}
,#{content,jdbcType=VARCHAR},#{recordTime,jdbcType=TIMESTAMP},#{startTime,jdbcType=TIMESTAMP}
,#{endTime,jdbcType=TIMESTAMP},#{sumDuration,jdbcType=DOUBLE},#{checkDuration,jdbcType=DOUBLE}
,#{createId,jdbcType=BIGINT})
insert into user_record
id,
dd_user_id,
psr_id,
name,
status,
clock_status,
content,
record_time,
start_time,
end_time,
sum_duration,
check_duration,
create_id,
#{id,jdbcType=BIGINT},
#{ddUserId,jdbcType=BIGINT},
#{psrId,jdbcType=BIGINT},
#{name,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER},
#{clockStatus,jdbcType=INTEGER},
#{content,jdbcType=VARCHAR},
#{recordTime,jdbcType=TIMESTAMP},
#{startTime,jdbcType=TIMESTAMP},
#{endTime,jdbcType=TIMESTAMP},
#{sumDuration,jdbcType=DOUBLE},
#{checkDuration,jdbcType=DOUBLE},
#{createId,jdbcType=BIGINT},
update user_record
dd_user_id = #{ddUserId,jdbcType=BIGINT},
psr_id = #{psrId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
clock_status = #{clockStatus,jdbcType=INTEGER},
content = #{content,jdbcType=VARCHAR},
record_time = #{recordTime,jdbcType=TIMESTAMP},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
sum_duration = #{sumDuration,jdbcType=DOUBLE},
check_duration = #{checkDuration,jdbcType=DOUBLE},
create_id = #{createId,jdbcType=BIGINT},
where id = #{id,jdbcType=BIGINT}
update user_record
set
dd_user_id = #{ddUserId,jdbcType=BIGINT},
psr_id = #{psrId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
clock_status = #{clockStatus,jdbcType=INTEGER},
content = #{content,jdbcType=VARCHAR},
record_time = #{recordTime,jdbcType=TIMESTAMP},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
sum_duration = #{sumDuration,jdbcType=DOUBLE},
check_duration = #{checkDuration,jdbcType=DOUBLE},
create_id = #{createId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}