From 90d618b66fa5ca2e4e818a9bb3ccf7c8aff73ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E5=90=8C=E5=AD=A6?= Date: Mon, 20 Oct 2025 14:25:26 +0800 Subject: [PATCH] =?UTF-8?q?UPDATE:=20=E6=96=B0=E5=BB=BA=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=8F=AF=E9=80=89=E6=8B=A9=E6=89=80=E6=9C=89=E6=A0=87=E5=87=86?= =?UTF-8?q?=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/PqStandardDevServiceImpl.java | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/detection/src/main/java/com/njcn/gather/device/service/impl/PqStandardDevServiceImpl.java b/detection/src/main/java/com/njcn/gather/device/service/impl/PqStandardDevServiceImpl.java index cd8db8ce..66dba605 100644 --- a/detection/src/main/java/com/njcn/gather/device/service/impl/PqStandardDevServiceImpl.java +++ b/detection/src/main/java/com/njcn/gather/device/service/impl/PqStandardDevServiceImpl.java @@ -8,7 +8,6 @@ import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.StrUtil; -import cn.hutool.extra.spring.SpringUtil; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -18,17 +17,12 @@ import com.njcn.common.pojo.exception.BusinessException; import com.njcn.common.pojo.poi.PullDown; import com.njcn.common.utils.EncryptionUtil; import com.njcn.gather.device.mapper.PqStandardDevMapper; -import com.njcn.gather.device.pojo.enums.CheckStateEnum; -import com.njcn.gather.device.pojo.enums.CommonEnum; import com.njcn.gather.device.pojo.param.PqStandardDevParam; import com.njcn.gather.device.pojo.po.PqStandardDev; import com.njcn.gather.device.pojo.vo.PqStandardDevExcel; import com.njcn.gather.device.pojo.vo.PreDetection; import com.njcn.gather.device.service.IPqStandardDevService; import com.njcn.gather.plan.mapper.AdPlanStandardDevMapper; -import com.njcn.gather.plan.pojo.po.AdPlan; -import com.njcn.gather.plan.pojo.po.AdPlanStandardDev; -import com.njcn.gather.plan.service.IAdPlanService; import com.njcn.gather.plan.service.IAdPlanStandardDevService; import com.njcn.gather.pojo.enums.DetectionResponseEnum; import com.njcn.gather.system.dictionary.pojo.po.DictData; @@ -311,7 +305,7 @@ public class PqStandardDevServiceImpl extends ServiceImpl canBindingList() { - List excludeStandardDevIds = new ArrayList<>(); + /*List excludeStandardDevIds = new ArrayList<>(); // 获取所有已绑定的标准设备 List boundList = adPlanStandardDevService.list(); if (CollectionUtil.isNotEmpty(boundList)) { @@ -350,13 +344,13 @@ public class PqStandardDevServiceImpl extends ServiceImpl list = this.lambdaQuery() .eq(PqStandardDev::getState, DataStateEnum.ENABLE.getCode()) .list(); - for (PqStandardDev pqStandardDev : list) { + /*for (PqStandardDev pqStandardDev : list) { pqStandardDev.setDisabled(excludeStandardDevIds.contains(pqStandardDev.getId())); - } + }*/ return list; } }