Fix vari
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -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"));
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user