소스 검색

截图优化

wyyay 10 달 전
부모
커밋
05e233b31e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      hazard-admin/src/main/java/com/ozs/web/controller/shotschedule/ShotPictureExecutors.java

+ 2 - 2
hazard-admin/src/main/java/com/ozs/web/controller/shotschedule/ShotPictureExecutors.java

@@ -56,7 +56,7 @@ public class ShotPictureExecutors {
         try {
             if(!CollectionUtils.isEmpty(dataList) && Objects.nonNull(dataList.get(0))){
                 if (Boolean.parseBoolean(dataList.get(0).getDictLabel())) {
-                    if(CollectionUtils.isEmpty(addressDataList) || Objects.isNull(addressDataList.get(0))){
+                    if(!CollectionUtils.isEmpty(addressDataList) && Objects.nonNull(addressDataList.get(0))){
                         address = addressDataList.get(0).getDictLabel();
                     }
                     taskService.getNormalPicture(address);
@@ -88,7 +88,7 @@ public class ShotPictureExecutors {
         try {
             if(!CollectionUtils.isEmpty(dataList) && Objects.nonNull(dataList.get(0))){
                 if (Boolean.parseBoolean(dataList.get(0).getDictLabel())) {
-                    if(CollectionUtils.isEmpty(addressDataList) || Objects.isNull(addressDataList.get(0))){
+                    if(!CollectionUtils.isEmpty(addressDataList) && Objects.nonNull(addressDataList.get(0))){
                         address = addressDataList.get(0).getDictLabel();
                     }
                     taskService.getAlarmPicture(address);