In getColloInGiac popolata MtbColr tramite executeSimpleQueryOnlyFirstRowDTO
This commit is contained in:
@@ -189,6 +189,7 @@ public class MtbColr extends EntityBase implements EquatableEntityInterface<MtbC
|
||||
private Date dataScadPartita;
|
||||
|
||||
@JsonProperty
|
||||
@MapToTable("descrizione")
|
||||
private String descrizione;
|
||||
|
||||
@JsonProperty
|
||||
|
||||
@@ -1583,44 +1583,9 @@ public class PvmService {
|
||||
mtbColtToReturn.getDataCollo(),
|
||||
mtbColtToReturn.getNumCollo());
|
||||
|
||||
final List<HashMap<String, Object>> mtbColrValues = UtilityDB.executeSimpleQuery(multiDBTransactionManager.getPrimaryConnection(), mtbColrsSql);
|
||||
|
||||
List<MtbColr> rows = new ArrayList<MtbColr>();
|
||||
|
||||
for (HashMap<String, Object> mapRow : mtbColrValues) {
|
||||
MtbColr row = new MtbColr();
|
||||
|
||||
row.setGestione(UtilityHashMap.getValueIfExists(mapRow, "gestione"));
|
||||
row.setDataCollo(UtilityLocalDate.localDateFromDate(UtilityHashMap.getValueIfExists(mapRow, "data_collo")));
|
||||
row.setSerCollo(UtilityHashMap.getValueIfExists(mapRow, "ser_collo"));
|
||||
row.setNumCollo(UtilityHashMap.getValueIfExists(mapRow, "num_collo"));
|
||||
row.setCodMart(UtilityHashMap.getValueIfExists(mapRow, "cod_mart"));
|
||||
row.setPartitaMag(UtilityHashMap.getValueIfExists(mapRow, "partita_mag"));
|
||||
row.setQtaCol(UtilityHashMap.getValueIfExists(mapRow, "qta_col"));
|
||||
row.setQtaCnf(UtilityHashMap.getValueIfExists(mapRow, "qta_cnf"));
|
||||
row.setNumCnf(UtilityHashMap.getValueIfExists(mapRow, "num_cnf"));
|
||||
row.setRiga(UtilityHashMap.getValueIfExists(mapRow, "riga"));
|
||||
row.setRigaOrd(UtilityHashMap.getValueIfExists(mapRow, "riga_ord"));
|
||||
row.setDataOrd(UtilityLocalDate.localDateFromDate(UtilityHashMap.getValueIfExists(mapRow, "data_ord")));
|
||||
row.setNumOrd(UtilityHashMap.getValueIfExists(mapRow, "num_ord"));
|
||||
row.setNumEtich(UtilityHashMap.getValueIfExists(mapRow, "num_etich"));
|
||||
row.setDatetimeRow(UtilityLocalDate.localDateTimeFromDate(UtilityHashMap.<Timestamp>getValueIfExists(mapRow, "datetime_row")));
|
||||
row.setCodJcom(UtilityHashMap.getValueIfExists(mapRow, "cod_jcom"));
|
||||
row.setDescrizione(UtilityHashMap.getValueIfExists(mapRow, "descrizione"));
|
||||
row.setGestioneRif(UtilityHashMap.getValueIfExists(mapRow, "gestione_rif"));
|
||||
row.setDataColloRif(UtilityLocalDate.localDateFromDate(UtilityHashMap.getValueIfExists(mapRow, "data_collo_rif")));
|
||||
row.setNumColloRif(UtilityHashMap.getValueIfExists(mapRow, "num_collo_rif"));
|
||||
row.setSerColloRif(UtilityHashMap.getValueIfExists(mapRow, "ser_collo_rif"));
|
||||
row.setBarcodeUlIn(UtilityHashMap.getValueIfExists(mapRow, "barcode_ul_in"));
|
||||
row.setCodMdepIn(UtilityHashMap.getValueIfExists(mapRow, "cod_mdep_in"));
|
||||
row.setPosizioneIn(UtilityHashMap.getValueIfExists(mapRow, "posizione_in"));
|
||||
row.setOperation(OperationType.SELECT_OBJECT);
|
||||
row.setOnlyPkMaster(false);
|
||||
|
||||
rows.add(row);
|
||||
}
|
||||
|
||||
mtbColtToReturn.setMtbColr(rows);
|
||||
mtbColtToReturn.setMtbColr(
|
||||
UtilityDB.executeSimpleQueryDTO(multiDBTransactionManager.getPrimaryConnection(), mtbColrsSql, MtbColr.class)
|
||||
);
|
||||
} else {
|
||||
|
||||
final List<MvwSitArtUdcDetInventarioDTO> giacenzaList = wmsGiacenzaULService.retrieveArtsInGiacenzaByBarcodeUl(multiDBTransactionManager.getPrimaryConnection(), barcodeUl);
|
||||
|
||||
Reference in New Issue
Block a user