master
yinq 2 years ago
parent 36d60bf5c1
commit b976e89446

@ -10,6 +10,7 @@ import com.ruoyi.system.domain.ScadaUhullDeviceinfo;
import com.ruoyi.system.domain.scada.*; import com.ruoyi.system.domain.scada.*;
import com.ruoyi.system.mapper.ScadaFoamHourDataMapper; import com.ruoyi.system.mapper.ScadaFoamHourDataMapper;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ScadaFoamDeviceinfoMapper; import com.ruoyi.system.mapper.ScadaFoamDeviceinfoMapper;
import com.ruoyi.system.domain.ScadaFoamDeviceinfo; import com.ruoyi.system.domain.ScadaFoamDeviceinfo;
@ -32,6 +33,8 @@ public class ScadaFoamDeviceinfoServiceImpl implements IScadaFoamDeviceinfoServi
@Autowired @Autowired
private ScadaFoamHourDataMapper scadaFoamHourDataMapper; private ScadaFoamHourDataMapper scadaFoamHourDataMapper;
@Value("${in_id}")
private int in_id;
/** /**
* *
* *
@ -134,15 +137,15 @@ public class ScadaFoamDeviceinfoServiceImpl implements IScadaFoamDeviceinfoServi
public List<Integer> getFlawRate() { public List<Integer> getFlawRate() {
return new ArrayList<Integer>() { return new ArrayList<Integer>() {
{ {
this.add(scadaFoamDeviceinfoMapper.getQualityCheck(1).size()); this.add(scadaFoamDeviceinfoMapper.getQualityCheck(in_id).size());
this.add(scadaFoamDeviceinfoMapper.getProductQuality(1).size()); this.add(scadaFoamDeviceinfoMapper.getProductQuality(in_id).size());
} }
}; };
} }
@Override @Override
public List<FlawCount> getFlawCount() { public List<FlawCount> getFlawCount() {
return scadaFoamDeviceinfoMapper.getFlawCount(1); return scadaFoamDeviceinfoMapper.getFlawCount(in_id);
} }
@Override @Override

Loading…
Cancel
Save