insert into sys_warehouse_container(id, warehouse_id, type, container_code, info_code, structure, name, valid_flag, character_left, character_right, create_time, update_time, controller_code)
values (#{id}, #{warehouseId}, #{type}, #{containerCode}, #{infoCode}, #{structure}, #{name}, 1, #{characterLeft}, #{characterRight}, now(), now(), #{controllerCode})
update sys_warehouse_container set warehouse_id=#{warehouseId}, type=#{type}, container_code=#{containerCode},
info_code=#{infoCode}, structure=#{structure}, name=#{name}, character_left=#{characterLeft}, character_right=#{characterRight},
update_time=now()
where id=#{id}
update sys_warehouse_container set valid_flag=0, update_time=now()
where id in
#{item}
update sys_warehouse_container set warehouse_id=#{warehouseId}, type=#{type},
info_code=#{infoCode}, structure=#{structure}, name=#{name}, character_left=#{characterLeft}, character_right=#{characterRight},
update_time=#{updateTime}, controller_code = #{controllerCode}, valid_flag = #{validFlag}
where id=#{id} and update_time < #{updateTime}
update sys_warehouse_container set
controller_code=null
where controller_code=#{controllerCode}
update sys_warehouse_container set valid_flag= 0, update_time = #{updateTime}
where id=#{id} and update_time < #{updateTime}