|
|
|
@ -63,7 +63,7 @@ public class TankShellDeviceInfoServiceImpl implements ITankShellDeviceInfoServi
|
|
|
|
|
tankShellDeviceDataInformation.setDeviceStatus("0");
|
|
|
|
|
tankShellDeviceDataInformation.setDevicePower("0");
|
|
|
|
|
tankShellDeviceDataInformation.setDeviceEnergy("0");
|
|
|
|
|
tankShellDeviceDataInformation.setAlarmCount(0);
|
|
|
|
|
tankShellDeviceDataInformation.setCount(0);
|
|
|
|
|
tankShellDeviceDataInformations.add(tankShellDeviceDataInformation);
|
|
|
|
|
}else{
|
|
|
|
|
if(tankShellDeviceDataInformations.get(0) == null){
|
|
|
|
@ -71,7 +71,7 @@ public class TankShellDeviceInfoServiceImpl implements ITankShellDeviceInfoServi
|
|
|
|
|
tankShellDeviceDataInformation.setDeviceStatus("0");
|
|
|
|
|
tankShellDeviceDataInformation.setDevicePower("0");
|
|
|
|
|
tankShellDeviceDataInformation.setDeviceEnergy("0");
|
|
|
|
|
tankShellDeviceDataInformation.setAlarmCount(0);
|
|
|
|
|
tankShellDeviceDataInformation.setCount(0);
|
|
|
|
|
tankShellDeviceDataInformations.add(tankShellDeviceDataInformation);
|
|
|
|
|
}else{
|
|
|
|
|
for(TankShellDeviceDataInformation item : tankShellDeviceDataInformations){
|
|
|
|
@ -121,14 +121,14 @@ public class TankShellDeviceInfoServiceImpl implements ITankShellDeviceInfoServi
|
|
|
|
|
result[3] = tankShellThisMonthEnergies.size() > 0 ? tankShellThisMonthEnergies.get(0).getEnergy():"0";
|
|
|
|
|
|
|
|
|
|
// List<TankShellDeviceDataInformation> deviceDataInformations = tankShellDeviceDataInformationMapper.selectList(null);
|
|
|
|
|
List<TankShellDeviceDataInformation> deviceDataInformations = tankShellDeviceDataInformationMapper.getDeviceDataInformations(in_id);
|
|
|
|
|
List<TankShellDeviceDataInformation> deviceDataInformations = tankShellDeviceDataInformationMapper.getTankShellDeviceRunParameters(in_id);
|
|
|
|
|
if(deviceDataInformations.size() > 0){
|
|
|
|
|
TankShellDeviceDataInformation tankShellDeviceDataInformation = deviceDataInformations.get(0);
|
|
|
|
|
if(tankShellDeviceDataInformation != null){
|
|
|
|
|
result[4] = tankShellDeviceDataInformation.getRunTime();
|
|
|
|
|
result[5] = tankShellDeviceDataInformation.getStopTime();
|
|
|
|
|
result[6] = tankShellDeviceDataInformation.getDeviceOee();
|
|
|
|
|
result[7] = tankShellDeviceDataInformation.getAlarmCount()+"";
|
|
|
|
|
result[7] = tankShellDeviceDataInformation.getCount()+"";
|
|
|
|
|
result[8] = tankShellDeviceDataInformation.getLossTime();
|
|
|
|
|
result[9] = tankShellDeviceDataInformation.getDeviceTakt();
|
|
|
|
|
|
|
|
|
|