|
|
@@ -51,15 +51,12 @@ public class TbVmsDsplHsService {
|
|
|
*/
|
|
|
public List<TbVmsDsplHsDto> findAllByDateRange(String fromDt, String toDt, List<Long> ids) {
|
|
|
List<TbVmsDsplHsDto> result = new ArrayList<>();
|
|
|
- //log.error("SELECT");
|
|
|
List<TbVmsDsplHs> data = this.repo.findAllByDateRange(fromDt, toDt, ids);
|
|
|
- //log.error("FETCH");
|
|
|
if (data != null) {
|
|
|
data.forEach(obj -> {
|
|
|
result.add(obj.toDto());
|
|
|
});
|
|
|
}
|
|
|
- //log.error("END");
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
@@ -81,7 +78,7 @@ public class TbVmsDsplHsService {
|
|
|
dto.setImagData(createVmsDsplImage(dto.getImagFmt(), obj.getVms(), id, obj.getVmsDsplMsgData(), obj.getPhase()));
|
|
|
result.add(dto);
|
|
|
} catch (IOException | ImageReadException e) {
|
|
|
- log.error("{}", e.getMessage());
|
|
|
+ log.error("findAllImageByDateRange: {}", e.getMessage());
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -101,9 +98,9 @@ public class TbVmsDsplHsService {
|
|
|
*/
|
|
|
public byte[] createVmsDsplImage(String imagFmt, TbVmsCtlr obj, Long id, String msgData, int phaseNum) throws IOException, ImageReadException {
|
|
|
|
|
|
- String saveDir = ItsUtils.createUserDir("/image/vms/dspl-hs/");
|
|
|
+ //String saveDir = ItsUtils.createUserDir("/image/vms/dspl-hs/");
|
|
|
if (obj == null || obj.getType() == null) {
|
|
|
- log.error("Not Found VMS Controller: {}, {}", id, obj);
|
|
|
+ log.error("createVmsDsplImage: Not Found VMS Controller: {}, {}", id, obj);
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@@ -177,11 +174,11 @@ public class TbVmsDsplHsService {
|
|
|
g2d.drawImage(imgBmp, left, top, imgBmp.getWidth(null), imgBmp.getHeight(null), null);
|
|
|
}
|
|
|
else {
|
|
|
- log.error("symbol image null id: {}, {}, {}", id, phaseNum, symbLibId);
|
|
|
+ log.error("createVmsDsplImage: symbol image null id: {}, {}, {}", id, phaseNum, symbLibId);
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
- log.error("Not found symbol id: {}, {}, {}", id, phaseNum, symbLibId);
|
|
|
+ log.error("createVmsDsplImage: Not found symbol id: {}, {}, {}", id, phaseNum, symbLibId);
|
|
|
}
|
|
|
}
|
|
|
else if (objType == 3) { // draw traffic
|
|
|
@@ -222,11 +219,11 @@ public class TbVmsDsplHsService {
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
- log.error("symbol image null id: {}, {}, {}", id, phaseNum, symbLibId);
|
|
|
+ log.error("createVmsDsplImage: symbol image null id: {}, {}, {}", id, phaseNum, symbLibId);
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
- log.error("Not found symbol id: {}, {}, {}", id, phaseNum, symbLibId);
|
|
|
+ log.error("createVmsDsplImage: Not found symbol id: {}, {}, {}", id, phaseNum, symbLibId);
|
|
|
}
|
|
|
}
|
|
|
}
|