From b976e894464f60149f34b76eba0c7193da634a24 Mon Sep 17 00:00:00 2001 From: yinq <1345442242@qq.com> Date: Thu, 1 Dec 2022 12:30:49 +0800 Subject: [PATCH] =?UTF-8?q?in=5Fid=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ScadaFoamDeviceinfoServiceImpl.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ScadaFoamDeviceinfoServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ScadaFoamDeviceinfoServiceImpl.java index fb79722..db336c7 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ScadaFoamDeviceinfoServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ScadaFoamDeviceinfoServiceImpl.java @@ -10,6 +10,7 @@ import com.ruoyi.system.domain.ScadaUhullDeviceinfo; import com.ruoyi.system.domain.scada.*; import com.ruoyi.system.mapper.ScadaFoamHourDataMapper; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import com.ruoyi.system.mapper.ScadaFoamDeviceinfoMapper; import com.ruoyi.system.domain.ScadaFoamDeviceinfo; @@ -32,6 +33,8 @@ public class ScadaFoamDeviceinfoServiceImpl implements IScadaFoamDeviceinfoServi @Autowired private ScadaFoamHourDataMapper scadaFoamHourDataMapper; + @Value("${in_id}") + private int in_id; /** * 查询发泡设备 * @@ -134,15 +137,15 @@ public class ScadaFoamDeviceinfoServiceImpl implements IScadaFoamDeviceinfoServi public List getFlawRate() { return new ArrayList() { { - this.add(scadaFoamDeviceinfoMapper.getQualityCheck(1).size()); - this.add(scadaFoamDeviceinfoMapper.getProductQuality(1).size()); + this.add(scadaFoamDeviceinfoMapper.getQualityCheck(in_id).size()); + this.add(scadaFoamDeviceinfoMapper.getProductQuality(in_id).size()); } }; } @Override public List getFlawCount() { - return scadaFoamDeviceinfoMapper.getFlawCount(1); + return scadaFoamDeviceinfoMapper.getFlawCount(in_id); } @Override