id,storage_location_code,storage_location_name,warehouse_where,storage_location_type,is_not_disable,create_time
insert into tld_storage_location(storage_location_code,storage_location_name,warehouse_where,storage_location_type,is_not_disable,create_time)
values(#{storageLocationCode},#{storageLocationName},#{warehouseWhere},#{storageLocationType},#{isNotDisable},DATE_FORMAT(NOW(), '%Y-%m-%d'))
delete from tld_storage_location where id = #{id}
update tld_storage_location
storage_location_code = #{storageLocationCode},
storage_location_name = #{storageLocationName},
warehouse_where = #{warehouseWhere},
storage_location_type = #{storageLocationType},
is_not_disable = #{isNotDisable},
where id = #{id}