select count(1) from ware_house_location and id = #{id} and lane_id = #{laneId} and lane_name = #{laneName} and area_id = #{areaId} and area_name = #{areaName} and location_no = #{locationNo} and location_yaw = #{locationYaw} and group_name = #{groupName} and sku_info = #{skuInfo} and sku_batch = #{skuBatch} and sku_number = #{skuNumber} and tray_info = #{trayInfo} and location_enable = #{locationEnable} and location_lock = #{locationLock} and location_use_status = #{locationUseStatus} and location_x = #{locationX} and location_y = #{locationY} and location_wide = #{locationWide} and location_deep = #{locationDeep} and location_height = #{locationHeight} and location_default_height = #{locationDefaultHeight} and location_total_height = #{locationTotalHeight} and location_tray_height = #{locationTrayHeight} and location_storey = #{locationStorey} and location_type = #{locationType} and location_number = #{locationNumber} and creator = #{creator} and create_time = #{createTime} and updater = #{updater} and update_time = #{updateTime} and deleted = #{deleted} and tenant_id = #{tenantId} insert into ware_house_location(lane_id, lane_name, area_id, area_name, location_no, location_yaw, group_name, sku_info, sku_batch, sku_number, tray_info, location_enable, location_lock, location_use_status, location_x, location_y, location_wide, location_deep, location_height, location_default_height, location_total_height, location_tray_height, location_storey, location_type, location_number, creator, create_time, updater, update_time, deleted, tenant_id) values (#{laneId}, #{laneName}, #{areaId}, #{areaName}, #{locationNo}, #{locationYaw}, #{groupName}, #{skuInfo}, #{skuBatch}, #{skuNumber}, #{trayInfo}, #{locationEnable}, #{locationLock}, #{locationUseStatus}, #{locationX}, #{locationY}, #{locationWide}, #{locationDeep}, #{locationHeight}, #{locationDefaultHeight}, #{locationTotalHeight}, #{locationTrayHeight}, #{locationStorey}, #{locationType}, #{locationNumber}, #{creator}, #{createTime}, #{updater}, #{updateTime}, #{deleted}, #{tenantId}) insert into ware_house_location(lane_id, lane_name, area_id, area_name, location_no, location_yaw, group_name, sku_info, sku_batch, sku_number, tray_info, location_enable, location_lock, location_use_status, location_x, location_y, location_wide, location_deep, location_height, location_default_height, location_total_height, location_tray_height, location_storey, location_type, location_number, creator, create_time, updater, update_time, deleted, tenant_id) values (#{entity.laneId}, #{entity.laneName}, #{entity.areaId}, #{entity.areaName}, #{entity.locationNo}, #{entity.locationYaw}, #{entity.groupName}, #{entity.skuInfo}, #{entity.skuBatch}, #{entity.skuNumber}, #{entity.trayInfo}, #{entity.locationEnable}, #{entity.locationLock}, #{entity.locationUseStatus}, #{entity.locationX}, #{entity.locationY}, #{entity.locationWide}, #{entity.locationDeep}, #{entity.locationHeight}, #{entity.locationDefaultHeight}, #{entity.locationTotalHeight}, #{entity.locationTrayHeight}, #{entity.locationStorey}, #{entity.locationType}, #{entity.locationNumber}, #{entity.creator}, #{entity.createTime}, #{entity.updater}, #{entity.updateTime}, #{entity.deleted}, #{entity.tenantId}) insert into ware_house_location(lane_id, lane_name, area_id, area_name, location_no, location_yaw, group_name, sku_info, sku_batch, sku_number, tray_info, location_enable, location_lock, location_use_status, location_x, location_y, location_wide, location_deep, location_height, location_default_height, location_total_height, location_tray_height, location_storey, location_type, location_number, creator, create_time, updater, update_time, deleted, tenant_id) values (#{entity.laneId}, #{entity.laneName}, #{entity.areaId}, #{entity.areaName}, #{entity.locationNo}, #{entity.locationYaw}, #{entity.groupName}, #{entity.skuInfo}, #{entity.skuBatch}, #{entity.skuNumber}, #{entity.trayInfo}, #{entity.locationEnable}, #{entity.locationLock}, #{entity.locationUseStatus}, #{entity.locationX}, #{entity.locationY}, #{entity.locationWide}, #{entity.locationDeep}, #{entity.locationHeight}, #{entity.locationDefaultHeight}, #{entity.locationTotalHeight}, #{entity.locationTrayHeight}, #{entity.locationStorey}, #{entity.locationType}, #{entity.locationNumber}, #{entity.creator}, #{entity.createTime}, #{entity.updater}, #{entity.updateTime}, #{entity.deleted}, #{entity.tenantId}) on duplicate key update lane_id = values(lane_id), lane_name = values(lane_name), area_id = values(area_id), area_name = values(area_name), location_no = values(location_no), location_yaw = values(location_yaw), group_name = values(group_name), sku_info = values(sku_info), sku_batch = values(sku_batch), sku_number = values(sku_number), tray_info = values(tray_info), location_enable = values(location_enable), location_lock = values(location_lock), location_use_status = values(location_use_status), location_x = values(location_x), location_y = values(location_y), location_wide = values(location_wide), location_deep = values(location_deep), location_height = values(location_height), location_default_height = values(location_default_height), location_total_height = values(location_total_height), location_tray_height = values(location_tray_height), location_storey = values(location_storey), location_type = values(location_type), location_number = values(location_number), creator = values(creator), create_time = values(create_time), updater = values(updater), update_time = values(update_time), deleted = values(deleted), tenant_id = values(tenant_id) update ware_house_location lane_id = #{laneId}, lane_name = #{laneName}, area_id = #{areaId}, area_name = #{areaName}, location_no = #{locationNo}, location_yaw = #{locationYaw}, group_name = #{groupName}, sku_info = #{skuInfo}, sku_batch = #{skuBatch}, sku_number = #{skuNumber}, tray_info = #{trayInfo}, location_enable = #{locationEnable}, location_lock = #{locationLock}, location_use_status = #{locationUseStatus}, location_x = #{locationX}, location_y = #{locationY}, location_wide = #{locationWide}, location_deep = #{locationDeep}, location_height = #{locationHeight}, location_default_height = #{locationDefaultHeight}, location_total_height = #{locationTotalHeight}, location_tray_height = #{locationTrayHeight}, location_storey = #{locationStorey}, location_type = #{locationType}, location_number = #{locationNumber}, creator = #{creator}, create_time = #{createTime}, updater = #{updater}, update_time = #{updateTime}, deleted = #{deleted}, tenant_id = #{tenantId}, where id = #{id} delete from ware_house_location where id = #{id}