id, container_id, temp, humidity, voc1, flag, type, update_time
delete from sys_container_sensors
where id = #{id,jdbcType=VARCHAR}
insert into sys_container_sensors
id,
container_id,
temp,
humidity,
voc1,
flag,
type,
update_time,
#{id,jdbcType=VARCHAR},
#{containerId,jdbcType=VARCHAR},
#{temp,jdbcType=DOUBLE},
#{humidity,jdbcType=INTEGER},
#{voc1,jdbcType=INTEGER},
#{flag,jdbcType=INTEGER},
#{type,jdbcType=BIT},
#{updateTime,jdbcType=TIMESTAMP},
update sys_container_sensors
container_id = #{containerId,jdbcType=VARCHAR},
temp = #{temp,jdbcType=DOUBLE},
humidity = #{humidity,jdbcType=INTEGER},
voc1 = #{voc1,jdbcType=INTEGER},
flag = #{flag,jdbcType=INTEGER},
type = #{type,jdbcType=BIT},
update_time = #{updateTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=VARCHAR}
and container_id = #{containerId,jdbcType=VARCHAR}
and temp = #{temp,jdbcType=DOUBLE}
and humidity = #{humidity,jdbcType=INTEGER}
and voc1 = #{voc1,jdbcType=INTEGER}
and flag = #{flag,jdbcType=INTEGER}
and type = #{type,jdbcType=BIT}
and update_time = #{updateTime,jdbcType=TIMESTAMP}
and l.name = #{laboratoryName,jdbcType=VARCHAR}
and w.name = #{warehouseName,jdbcType=VARCHAR}
and l.name like CONCAT('%','${laboratoryName}','%')
and w.name like CONCAT('%','${warehouseName}','%')
and (lc.name like CONCAT('%','${containerNameLike}','%') or wc.name like CONCAT('%','${containerNameLike}','%'))
and (l.name like CONCAT('%','${laboratoryOrwarehouseNameLike}','%') or w.name like CONCAT('%','${laboratoryOrwarehouseNameLike}','%'))
and s.update_time >= #{beginUpdateTime}
limit #{offset} , #{limit}
order by ${orderby}
group by ${groupby}