com_id,
command_code,
command_name,
intake_id,
rtu_addr,
protocol,
param,
send_time,
`operator`,
`result`,
result_time,
result_text
delete
from rm_command_history
where com_id = #{comId,jdbcType=BIGINT}
insert into rm_command_history (com_id, command_code, command_name,
intake_id, rtu_addr, protocol,
param, send_time, `operator`,
`result`, result_time, result_text)
values (#{comId,jdbcType=BIGINT}, #{commandCode,jdbcType=VARCHAR}, #{commandName,jdbcType=VARCHAR},
#{intakeId,jdbcType=BIGINT}, #{rtuAddr,jdbcType=VARCHAR}, #{protocol,jdbcType=VARCHAR},
#{param,jdbcType= JAVA_OBJECT, typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler},
#{sendTime,jdbcType=TIMESTAMP}, #{operator,jdbcType=BIGINT},
#{result,jdbcType=TINYINT}, #{resultTime,jdbcType=TIMESTAMP}, #{resultText,jdbcType=LONGVARCHAR})
insert into rm_command_history
com_id,
command_code,
command_name,
intake_id,
rtu_addr,
protocol,
param,
send_time,
`operator`,
`result`,
result_time,
result_text,
#{comId,jdbcType=BIGINT},
#{commandCode,jdbcType=VARCHAR},
#{commandName,jdbcType=VARCHAR},
#{intakeId,jdbcType=BIGINT},
#{rtuAddr,jdbcType=VARCHAR},
#{protocol,jdbcType=VARCHAR},
#{param,jdbcType= JAVA_OBJECT, typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler},
#{sendTime,jdbcType=TIMESTAMP},
#{operator,jdbcType=BIGINT},
#{result,jdbcType=TINYINT},
#{resultTime,jdbcType=TIMESTAMP},
#{resultText,jdbcType=LONGVARCHAR},
update rm_command_history
command_code = #{commandCode,jdbcType=VARCHAR},
command_name = #{commandName,jdbcType=VARCHAR},
intake_id = #{intakeId,jdbcType=BIGINT},
rtu_addr = #{rtuAddr,jdbcType=VARCHAR},
protocol = #{protocol,jdbcType=VARCHAR},
param = #{param,jdbcType= JAVA_OBJECT, typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler},
send_time = #{sendTime,jdbcType=TIMESTAMP},
`operator` = #{operator,jdbcType=BIGINT},
`result` = #{result,jdbcType=TINYINT},
result_time = #{resultTime,jdbcType=TIMESTAMP},
result_text = #{resultText,jdbcType=LONGVARCHAR},
where com_id = #{comId,jdbcType=BIGINT}
update rm_command_history
set command_code = #{commandCode,jdbcType=VARCHAR},
command_name = #{commandName,jdbcType=VARCHAR},
intake_id = #{intakeId,jdbcType=BIGINT},
rtu_addr = #{rtuAddr,jdbcType=VARCHAR},
protocol = #{protocol,jdbcType=VARCHAR},
param = #{param,jdbcType= JAVA_OBJECT, typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler},
send_time = #{sendTime,jdbcType=TIMESTAMP},
`operator` = #{operator,jdbcType=BIGINT},
`result` = #{result,jdbcType=TINYINT},
result_time = #{resultTime,jdbcType=TIMESTAMP},
result_text = #{resultText,jdbcType=LONGVARCHAR}
where com_id = #{comId,jdbcType=BIGINT}