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