and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} id, mac, sensor, mac_key, mac_value, time delete from history where id = #{id,jdbcType=INTEGER} delete from history insert into history (id, mac, sensor, mac_key, mac_value, time ) values (#{id,jdbcType=INTEGER}, #{mac,jdbcType=VARCHAR}, #{sensor,jdbcType=VARCHAR}, #{macKey,jdbcType=VARCHAR}, #{macValue,jdbcType=DOUBLE}, #{time,jdbcType=TIMESTAMP} ) insert into history id, mac, sensor, mac_key, mac_value, time, #{id,jdbcType=INTEGER}, #{mac,jdbcType=VARCHAR}, #{sensor,jdbcType=VARCHAR}, #{macKey,jdbcType=VARCHAR}, #{macValue,jdbcType=DOUBLE}, #{time,jdbcType=TIMESTAMP}, update history id = #{record.id,jdbcType=INTEGER}, mac = #{record.mac,jdbcType=VARCHAR}, sensor = #{record.sensor,jdbcType=VARCHAR}, mac_key = #{record.macKey,jdbcType=VARCHAR}, mac_value = #{record.macValue,jdbcType=DOUBLE}, time = #{record.time,jdbcType=TIMESTAMP}, update history set id = #{record.id,jdbcType=INTEGER}, mac = #{record.mac,jdbcType=VARCHAR}, sensor = #{record.sensor,jdbcType=VARCHAR}, mac_key = #{record.macKey,jdbcType=VARCHAR}, mac_value = #{record.macValue,jdbcType=DOUBLE}, time = #{record.time,jdbcType=TIMESTAMP} update history mac = #{mac,jdbcType=VARCHAR}, sensor = #{sensor,jdbcType=VARCHAR}, mac_key = #{macKey,jdbcType=VARCHAR}, mac_value = #{macValue,jdbcType=DOUBLE}, time = #{time,jdbcType=TIMESTAMP}, where id = #{id,jdbcType=INTEGER} update history set mac = #{mac,jdbcType=VARCHAR}, sensor = #{sensor,jdbcType=VARCHAR}, mac_key = #{macKey,jdbcType=VARCHAR}, mac_value = #{macValue,jdbcType=DOUBLE}, time = #{time,jdbcType=TIMESTAMP} where id = #{id,jdbcType=INTEGER}