shortage prediction infrastructure
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package pl.com.bottega.factory.production.planning.projection;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
|
||||
public interface ProductionOutputDailyDao {
|
||||
|
||||
void save(ProductionOutputDailyEntity entity);
|
||||
|
||||
List<ProductionOutputDailyEntity> findRefNoFromDate(String refNo, Instant now);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package pl.com.bottega.factory.production.planning.projection;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
@Data
|
||||
public class ProductionOutputDailyEntity {
|
||||
private final String refNo;
|
||||
private final LocalDate date;
|
||||
private final long level;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package pl.com.bottega.factory.production.planning.projection;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
|
||||
public interface ProductionOutputDao {
|
||||
|
||||
void save(ProductionOutputEntity entity);
|
||||
|
||||
List<ProductionOutputEntity> findRefNoFrom(String refNo, Instant instant);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package pl.com.bottega.factory.production.planning.projection;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class ProductionOutputEntity {
|
||||
private final String refNo;
|
||||
private final LocalDateTime start;
|
||||
private final Duration duration;
|
||||
private final int partsPerMinute;
|
||||
private final long total;
|
||||
}
|
||||
Reference in New Issue
Block a user