Aggiunto parametro lotto in CreateUDSRequestDTO
This commit is contained in:
@@ -20,6 +20,7 @@ public class CreateUDSRequestDTO {
|
||||
private String codAnag;
|
||||
private String codVdes;
|
||||
|
||||
private Integer idLotto;
|
||||
private String rifOrd;
|
||||
|
||||
private boolean orderRequired;
|
||||
@@ -153,6 +154,15 @@ public class CreateUDSRequestDTO {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Integer getIdLotto() {
|
||||
return idLotto;
|
||||
}
|
||||
|
||||
public CreateUDSRequestDTO setIdLotto(Integer idLotto) {
|
||||
this.idLotto = idLotto;
|
||||
return this;
|
||||
}
|
||||
|
||||
public enum Causale implements IBaseEnum {
|
||||
SCARICO(0),
|
||||
POSIZIONAMENTO(1);
|
||||
|
||||
@@ -160,13 +160,11 @@ public class WMSLavorazioneService {
|
||||
.distinct().
|
||||
toList();
|
||||
|
||||
if (idLotto.size() > 1) {
|
||||
throw new Exception("Trovato più di 1 id lotto in corso.");
|
||||
}
|
||||
|
||||
if (idLotto.size() == 1) {
|
||||
//Assegnare l'ordine o l'id lotto al collo appena creato
|
||||
udsMtbColt
|
||||
.setIdLotto(idLotto.get(0));
|
||||
}
|
||||
|
||||
final List<Integer> foundInCorsoOrders = ordiniLavorazioneInCorso.stream()
|
||||
.map(OrdineLavorazioneDTO::getNumOrd)
|
||||
|
||||
Reference in New Issue
Block a user