Salvataggio TRASFERIMENTO_A_CESPITE in Farmmes Scrofaie
This commit is contained in:
@@ -49,6 +49,7 @@ public class FarmMesScrofaieImportService {
|
|||||||
private String trasferimentoACepsite;
|
private String trasferimentoACepsite;
|
||||||
private String sql;
|
private String sql;
|
||||||
private String tipoAnag = "C";
|
private String tipoAnag = "C";
|
||||||
|
private String trasferimento;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private JSONObjectMapper jsonObjectMapper;
|
private JSONObjectMapper jsonObjectMapper;
|
||||||
@@ -137,6 +138,14 @@ public class FarmMesScrofaieImportService {
|
|||||||
return trasferimentoSuisan;
|
return trasferimentoSuisan;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getTrasferimento() {
|
||||||
|
return trasferimento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrasferimento(String trasferimento) {
|
||||||
|
this.trasferimento = trasferimento;
|
||||||
|
}
|
||||||
|
|
||||||
private String getNextActivityId() throws Exception {
|
private String getNextActivityId() throws Exception {
|
||||||
return ConfigActivityRules.completeActivityId(multiDBTransactionManager.getPrimaryConnection());
|
return ConfigActivityRules.completeActivityId(multiDBTransactionManager.getPrimaryConnection());
|
||||||
}
|
}
|
||||||
@@ -2982,6 +2991,7 @@ public class FarmMesScrofaieImportService {
|
|||||||
setProduzione("PRODUZIONE");
|
setProduzione("PRODUZIONE");
|
||||||
setConsumi("INVENTARIO");
|
setConsumi("INVENTARIO");
|
||||||
setTrasferimentoACepsite("TRASFERIMENTO_A_CESPITE");
|
setTrasferimentoACepsite("TRASFERIMENTO_A_CESPITE");
|
||||||
|
setTrasferimento("TRASFERIMENTO");
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ServiceRestResponse> saveTransactionScrofaie(TransactionSaveScrofaie transaction) throws Exception {
|
public List<ServiceRestResponse> saveTransactionScrofaie(TransactionSaveScrofaie transaction) throws Exception {
|
||||||
@@ -3000,7 +3010,7 @@ public class FarmMesScrofaieImportService {
|
|||||||
finalList = RilevazioneMorti(transaction);
|
finalList = RilevazioneMorti(transaction);
|
||||||
} else if (transaction.getTransactionTypeID().compareTo(trasferimentoSuisan) == 0) {
|
} else if (transaction.getTransactionTypeID().compareTo(trasferimentoSuisan) == 0) {
|
||||||
finalList = TrasferimentoSuisan(transaction);
|
finalList = TrasferimentoSuisan(transaction);
|
||||||
} else if (transaction.getTransactionTypeID().compareTo(trasferimentoACepsite) == 0) {
|
} else if (transaction.getTransactionTypeID().compareTo(trasferimentoACepsite) == 0 || transaction.getTransactionTypeID().compareTo(trasferimento) == 0) {
|
||||||
finalList = TrasferimentoACespite(transaction);
|
finalList = TrasferimentoACespite(transaction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user