From 15f3f8cba1c6e2af88b6f2a275bf0f2f6468a9f9 Mon Sep 17 00:00:00 2001 From: wangh <123456> Date: Thu, 1 Dec 2022 14:07:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=8F=91=E6=B3=A1?= =?UTF-8?q?=E4=B8=89=E5=A4=84=E6=9F=A5=E8=AF=A2=E6=9C=AA=E4=BC=A0=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= 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..3bca61d 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; @@ -129,20 +130,22 @@ public class ScadaFoamDeviceinfoServiceImpl implements IScadaFoamDeviceinfoServi return Optional.of(infoList.get(0)); } + @Value("${in_id}") + private int in_id; @Override 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