Files
baiyue-firstleg/warehouse-overseas-service/src/main/java/com/baiyue/warehouse/dto/WarehouseResourceLockResponse.java
T

26 lines
861 B
Java
Raw Normal View History

2026-08-19 16:24:02 +08:00
package com.baiyue.warehouse.dto;
import com.baiyue.warehouse.entity.WarehouseResourceLockEntity;
import java.time.LocalDateTime;
public record WarehouseResourceLockResponse(
long lockId,
long customerId,
long warehouseId,
long palletId,
long locationId,
String businessType,
String businessId,
String reservationKey,
String status,
LocalDateTime lockedAt,
LocalDateTime releasedAt
) {
public static WarehouseResourceLockResponse from(WarehouseResourceLockEntity entity) {
return new WarehouseResourceLockResponse(entity.getId(), entity.getCustomerId(), entity.getWarehouseId(),
entity.getPalletId(), entity.getLocationId(), entity.getBusinessType(), entity.getBusinessId(),
entity.getReservationKey(), entity.getStatus(), entity.getLockedAt(), entity.getReleasedAt());
}
}