id, command_code, command_name, rtuAddr, protocol, command_type, callBack, param,
send_time, `operator`, `result`, result_time, result_text
delete from rm_command_history
where id = #{id,jdbcType=BIGINT}
insert into rm_command_history (id, command_code, command_name,
rtuAddr, protocol, command_type,
callBack, param, send_time,
`operator`, `result`, result_time,
result_text)
values (#{id,jdbcType=BIGINT}, #{commandCode,jdbcType=VARCHAR}, #{commandName,jdbcType=VARCHAR},
#{rtuaddr,jdbcType=VARCHAR}, #{protocol,jdbcType=VARCHAR}, #{commandType,jdbcType=VARCHAR},
#{callback,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= JAVA_OBJECT, typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler})
insert into rm_command_history
id,
command_code,
command_name,
rtuAddr,
protocol,
command_type,
callBack,
param,
send_time,
`operator`,
`result`,
result_time,
result_text,
#{id,jdbcType=BIGINT},
#{commandCode,jdbcType=VARCHAR},
#{commandName,jdbcType=VARCHAR},
#{rtuaddr,jdbcType=VARCHAR},
#{protocol,jdbcType=VARCHAR},
#{commandType,jdbcType=VARCHAR},
#{callback,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= JAVA_OBJECT, typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler},
update rm_command_history
command_code = #{commandCode,jdbcType=VARCHAR},
command_name = #{commandName,jdbcType=VARCHAR},
rtuAddr = #{rtuaddr,jdbcType=VARCHAR},
protocol = #{protocol,jdbcType=VARCHAR},
command_type = #{commandType,jdbcType=VARCHAR},
callBack = #{callback,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= JAVA_OBJECT, typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler},
where id = #{id,jdbcType=BIGINT}
update rm_command_history
set command_code = #{commandCode,jdbcType=VARCHAR},
command_name = #{commandName,jdbcType=VARCHAR},
rtuAddr = #{rtuaddr,jdbcType=VARCHAR},
protocol = #{protocol,jdbcType=VARCHAR},
command_type = #{commandType,jdbcType=VARCHAR},
callBack = #{callback,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= JAVA_OBJECT, typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler}
where id = #{id,jdbcType=BIGINT}