Fix vari
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-04-10 17:01:23 +02:00
parent 1191f98485
commit ea2121e111
4 changed files with 72 additions and 1 deletions

View File

@@ -1595,7 +1595,7 @@ public class PvmService {
row.setCodJcom(UtilityHashMap.getValueIfExists(mapRow, "cod_jcom"));
row.setDescrizione(UtilityHashMap.getValueIfExists(mapRow, "descrizione"));
row.setGestioneRif(UtilityHashMap.getValueIfExists(mapRow, "gestione_rif"));
row.setDataColloRif(UtilityHashMap.getValueIfExists(mapRow, "data_collo_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"));

View File

@@ -0,0 +1,47 @@
package it.integry.ems.retail.wms.dto;
import java.time.LocalDate;
public class UpdateDepositoULRequestDTO {
private String gestione;
private LocalDate data;
private int num;
private String serie;
public String getGestione() {
return gestione;
}
public UpdateDepositoULRequestDTO setGestione(String gestione) {
this.gestione = gestione;
return this;
}
public LocalDate getData() {
return data;
}
public UpdateDepositoULRequestDTO setData(LocalDate data) {
this.data = data;
return this;
}
public int getNum() {
return num;
}
public UpdateDepositoULRequestDTO setNum(int num) {
this.num = num;
return this;
}
public String getSerie() {
return serie;
}
public UpdateDepositoULRequestDTO setSerie(String serie) {
this.serie = serie;
return this;
}
}

View File

@@ -673,6 +673,14 @@ public class WMSGenericController {
return ServiceRestResponse.createPositiveResponse();
}
@PostMapping("wms/updateDepositoUL")
ServiceRestResponse changeDepositoMovimento(@RequestParam String newDeposito, @RequestBody UpdateDepositoULRequestDTO updateDepositoULRequest) throws Exception {
wmsGenericService.cambiaDepositoUL(updateDepositoULRequest, newDeposito);
return ServiceRestResponse.createPositiveResponse();
}
@RequestMapping(value = "wms/getArticoloByEan128", method = RequestMethod.GET)
public @ResponseBody
ServiceRestResponse getArticoloByEan128(HttpServletRequest request,

View File

@@ -2986,6 +2986,22 @@ public class WMSGenericService {
entityProcessor.processEntity(internalMovement, multiDBTransactionManager);
}
public void cambiaDepositoUL(UpdateDepositoULRequestDTO updateDepositoULRequestDTO, String newDeposito) throws Exception {
if(UtilityString.isNullOrEmpty(newDeposito))
throw new MissingDataException("Nuovo deposito");
MtbColt movementToUpdate = new MtbColt(updateDepositoULRequestDTO.getGestione(),
updateDepositoULRequestDTO.getData(),
updateDepositoULRequestDTO.getNum(),
updateDepositoULRequestDTO.getSerie());
movementToUpdate.setCodMdep(newDeposito);
movementToUpdate.setOperation(OperationType.UPDATE);
entityProcessor.processEntity(movementToUpdate, false, multiDBTransactionManager);
}
public SearchArtFromEanResponseDTO getArticoloFromEan128(String barcode) throws Exception {
Ean128Model model = UtilityBarcodeEan128.decode(barcode.getBytes());