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