Procházet zdrojové kódy

202410241632 #comment 目标需求代码修改

lhq před 1 měsícem
rodič
revize
44a12e29c3

+ 3 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/service/TargetDemandService.java

@@ -105,6 +105,9 @@ public class TargetDemandService extends ServiceImpl<TargetDemandMapper, TargetD
         }
 
         List<TargetDemand> targetDemands = this.list(queryWrapper);
+        if(targetDemands.isEmpty()){
+            return AjaxResult.success();
+        }
         List<TargetDemandDTO> targetDemandDTOS = BizUtils.copyEntityToDto(TargetDemandDTO.class, targetDemands);
         //  带上目标点位信息
         List<String> targetIds = targetDemandDTOS.stream().map(TargetDemandDTO::getTargetId).collect(Collectors.toList());