Fix codAnag vettore
This commit is contained in:
parent
e49d35fdbc
commit
cde96ae694
@ -67,22 +67,21 @@ public class ImballiRESTConsumer extends _BaseRESTConsumer {
|
||||
}
|
||||
|
||||
|
||||
public void registraScaricoSyncronized(String codVettore, String codAnagVettore, List<ImballoQuantityDTO> imballi) throws Exception {
|
||||
public void registraScaricoSyncronized(String codVettore, List<ImballoQuantityDTO> imballi) throws Exception {
|
||||
ImballiRESTConsumerService service = RESTBuilder.getService(ImballiRESTConsumerService.class);
|
||||
Response<ServiceRESTResponse<Void>> response = service.registraScarico(
|
||||
new RegistraScaricoImballiRequestDTO()
|
||||
.setCodVettore(codVettore)
|
||||
.setCodAnagVettore(codAnagVettore)
|
||||
.setUsedImballi(imballi))
|
||||
.execute();
|
||||
|
||||
analyzeAnswer(response, "registraScarico");
|
||||
}
|
||||
|
||||
public void registraScarico(String idVettore, String codAnagVettore, List<ImballoQuantityDTO> imballi, Runnable onComplete, RunnableArgs<Exception> onFailed) {
|
||||
public void registraScarico(String idVettore, List<ImballoQuantityDTO> imballi, Runnable onComplete, RunnableArgs<Exception> onFailed) {
|
||||
executorService.execute(() -> {
|
||||
try {
|
||||
registraScaricoSyncronized(idVettore, codAnagVettore, imballi);
|
||||
registraScaricoSyncronized(idVettore, imballi);
|
||||
if (onComplete != null) onComplete.run();
|
||||
} catch (Exception ex) {
|
||||
if (onFailed != null) onFailed.run(ex);
|
||||
|
||||
@ -5,7 +5,6 @@ import java.util.List;
|
||||
public class RegistraScaricoImballiRequestDTO {
|
||||
|
||||
private String codVettore;
|
||||
private String codAnagVettore;
|
||||
private List<ImballoQuantityDTO> usedImballi;
|
||||
|
||||
public String getCodVettore() {
|
||||
@ -17,15 +16,6 @@ public class RegistraScaricoImballiRequestDTO {
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getCodAnagVettore() {
|
||||
return codAnagVettore;
|
||||
}
|
||||
|
||||
public RegistraScaricoImballiRequestDTO setCodAnagVettore(String codAnagVettore) {
|
||||
this.codAnagVettore = codAnagVettore;
|
||||
return this;
|
||||
}
|
||||
|
||||
public List<ImballoQuantityDTO> getUsedImballi() {
|
||||
return usedImballi;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user