|
@@ -166,10 +166,14 @@ public class DotMatrixController {
|
|
|
bitmapDataVo =bitmapDataVoMap.get(typeCode);
|
|
|
|
|
|
}else{
|
|
|
- bitmapDataVo = signageFileUtil.getLastBitmapDataVo(DEID, typeCode, isDefault);
|
|
|
+ bitmapDataVo = signageFileUtil.getLastBitmapDataVo(DEID, typeCode, isDefault);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ if (bitmapDataVo == null) {
|
|
|
+ return ResponseEntity.status(HttpStatus.NOT_FOUND)
|
|
|
+ .header("Content-Type", "text/plain; charset=UTF-8")
|
|
|
+ .body("预览初始图时,设备相关图不存在,可能设备已被删除".getBytes());
|
|
|
+ }
|
|
|
|
|
|
|
|
|
byte[] twoBytes = bitmapDataVo.getTwoData();
|