Finish Hotfix-52
This commit is contained in:
@@ -405,6 +405,30 @@ public class PvmController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = "checkDocReso", method = RequestMethod.POST)
|
||||||
|
public @ResponseBody
|
||||||
|
ServiceRestResponse checkDocReso(HttpServletRequest request,
|
||||||
|
@RequestParam(CommonConstants.PROFILE_DB) String configuration,
|
||||||
|
@RequestBody DocFromPickingDTO docFromPickingDTO) throws Exception {
|
||||||
|
if (!userSession.isAttivo()) {
|
||||||
|
throw new UsernameNotFoundException("Utente " + requestDataDTO.getUsername() + " non riconoscuto!");
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
List<AnomalieResiDTO> anomalieResiDTOS = pvmService.checkDocReso(docFromPickingDTO);
|
||||||
|
if (anomalieResiDTOS == null || anomalieResiDTOS.size() == 0)
|
||||||
|
return ServiceRestResponse.createPositiveResponse();
|
||||||
|
else {
|
||||||
|
ServiceRestResponse serviceRestResponse = ServiceRestResponse.createNegativeResponse();
|
||||||
|
serviceRestResponse.setJsonObject(anomalieResiDTOS);
|
||||||
|
return serviceRestResponse;
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ServiceRestResponse.createNegativeResponse(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value = EmsRestConstants.PATH_SAVE_PRESENZE, method = RequestMethod.POST)
|
@RequestMapping(value = EmsRestConstants.PATH_SAVE_PRESENZE, method = RequestMethod.POST)
|
||||||
public @ResponseBody
|
public @ResponseBody
|
||||||
|
|||||||
@@ -2740,7 +2740,7 @@ public class PvmService {
|
|||||||
" LEFT OUTER JOIN movi ON colli.cod_mdep = movi.cod_mdep AND\n" +
|
" LEFT OUTER JOIN movi ON colli.cod_mdep = movi.cod_mdep AND\n" +
|
||||||
" colli.cod_anag = movi.cod_anag AND\n" +
|
" colli.cod_anag = movi.cod_anag AND\n" +
|
||||||
" colli.cod_mart = movi.cod_mart AND\n" +
|
" colli.cod_mart = movi.cod_mart AND\n" +
|
||||||
" colli.data_scad = movi.data_scad\n",
|
" movi.data_scad between DateAdd(day, -3, colli.data_scad) AND DateAdd(day, 3, colli.data_scad) \n",
|
||||||
mtbColt.getGestione(), mtbColt.getDataCollo(), mtbColt.getSerCollo(), mtbColt.getNumCollo(), mtbColt.getCodMdep());
|
mtbColt.getGestione(), mtbColt.getDataCollo(), mtbColt.getSerCollo(), mtbColt.getNumCollo(), mtbColt.getCodMdep());
|
||||||
|
|
||||||
List<HashMap<String, Object>> partiteErrate = UtilityDB.executeSimpleQuery(multiDBTransactionManager.getPrimaryConnection(), sql);
|
List<HashMap<String, Object>> partiteErrate = UtilityDB.executeSimpleQuery(multiDBTransactionManager.getPrimaryConnection(), sql);
|
||||||
|
|||||||
Reference in New Issue
Block a user