diff --git a/productionboard/src/main/java/com/productionboard/entity/TankShellDevice/TankShellDeviceDataInformation.java b/productionboard/src/main/java/com/productionboard/entity/TankShellDevice/TankShellDeviceDataInformation.java index af55211..cebc662 100644 --- a/productionboard/src/main/java/com/productionboard/entity/TankShellDevice/TankShellDeviceDataInformation.java +++ b/productionboard/src/main/java/com/productionboard/entity/TankShellDevice/TankShellDeviceDataInformation.java @@ -60,7 +60,7 @@ public class TankShellDeviceDataInformation implements Serializable { private Date collectTime; @TableField("COUNT") - private int alarmCount; + private int count; @TableField("lossTime") private String lossTime; diff --git a/productionboard/src/main/java/com/productionboard/mapper/AluminumDeviceDataInformationMapper.java b/productionboard/src/main/java/com/productionboard/mapper/AluminumDeviceDataInformationMapper.java index d0c3a4a..2fc6c75 100644 --- a/productionboard/src/main/java/com/productionboard/mapper/AluminumDeviceDataInformationMapper.java +++ b/productionboard/src/main/java/com/productionboard/mapper/AluminumDeviceDataInformationMapper.java @@ -19,6 +19,9 @@ public interface AluminumDeviceDataInformationMapper extends BaseMapper getAluminumDeviceDataInformations(@Param("in_id") Integer in_id); + + @Select("select * from table ( scada_aluminum_device_t_new(#{in_id}) )") + List getAluminumDeviceRunParameters(@Param("in_id") Integer in_id); } diff --git a/productionboard/src/main/java/com/productionboard/mapper/TankShellDeviceDataInformationMapper.java b/productionboard/src/main/java/com/productionboard/mapper/TankShellDeviceDataInformationMapper.java index 4d28d6e..f731b2b 100644 --- a/productionboard/src/main/java/com/productionboard/mapper/TankShellDeviceDataInformationMapper.java +++ b/productionboard/src/main/java/com/productionboard/mapper/TankShellDeviceDataInformationMapper.java @@ -28,6 +28,6 @@ public interface TankShellDeviceDataInformationMapper extends BaseMapper getDeviceDataInformations(@Param("in_id") Integer in_id); + @Select("select * from table ( scada_device_run_info_new(#{in_id}) )") + List getTankShellDeviceRunParameters(@Param("in_id") Integer in_id); } diff --git a/productionboard/src/main/java/com/productionboard/service/impl/AluminumDeviceInfoServiceImpl.java b/productionboard/src/main/java/com/productionboard/service/impl/AluminumDeviceInfoServiceImpl.java index 89f875c..85a6c01 100644 --- a/productionboard/src/main/java/com/productionboard/service/impl/AluminumDeviceInfoServiceImpl.java +++ b/productionboard/src/main/java/com/productionboard/service/impl/AluminumDeviceInfoServiceImpl.java @@ -66,7 +66,7 @@ public class AluminumDeviceInfoServiceImpl implements IAluminumDeviceInfoService result[1] = aluminumYesterdayEnergies.size() > 0 ? aluminumYesterdayEnergies.get(0).getEnergy():"0"; result[2] = aluminumThisMonthEnergies.size() > 0 ? aluminumThisMonthEnergies.get(0).getProduction():"0"; result[3] = aluminumThisMonthEnergies.size() > 0 ? aluminumThisMonthEnergies.get(0).getEnergy():"0"; - List aluminumDeviceDataInformations = dataInformationMapper.getAluminumDeviceDataInformations(in_id); + List aluminumDeviceDataInformations = dataInformationMapper.getAluminumDeviceRunParameters(in_id); // List aluminumDeviceDataInformations = dataInformationMapper.selectList(null); if(aluminumDeviceDataInformations.size() > 0){ AluminumDeviceDataInformation aluminumDeviceDataInformation = aluminumDeviceDataInformations.get(0); diff --git a/productionboard/src/main/java/com/productionboard/service/impl/TankShellDeviceInfoServiceImpl.java b/productionboard/src/main/java/com/productionboard/service/impl/TankShellDeviceInfoServiceImpl.java index 2034f5e..d6216a8 100644 --- a/productionboard/src/main/java/com/productionboard/service/impl/TankShellDeviceInfoServiceImpl.java +++ b/productionboard/src/main/java/com/productionboard/service/impl/TankShellDeviceInfoServiceImpl.java @@ -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 deviceDataInformations = tankShellDeviceDataInformationMapper.selectList(null); - List deviceDataInformations = tankShellDeviceDataInformationMapper.getDeviceDataInformations(in_id); + List 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(); diff --git a/productionboard/src/main/resources/application.yml b/productionboard/src/main/resources/application.yml index bea2bcb..142f6dd 100644 --- a/productionboard/src/main/resources/application.yml +++ b/productionboard/src/main/resources/application.yml @@ -12,6 +12,6 @@ mybatis-plus: mapper-locations: classpath*:/mapper/**Mapper.xml server: - port: 6069 + port: 6070 -in_id: 1 \ No newline at end of file +in_id: 2 \ No newline at end of file diff --git a/productionboard/src/main/resources/static/js/aluminumLiner/index.js b/productionboard/src/main/resources/static/js/aluminumLiner/index.js index 2ee8c56..52f425b 100644 --- a/productionboard/src/main/resources/static/js/aluminumLiner/index.js +++ b/productionboard/src/main/resources/static/js/aluminumLiner/index.js @@ -8,7 +8,7 @@ $(() => { statusArray[0] = result[0].deviceStatus == "正常" ? "1" : "0"; statusArray[1] = test(result[0].devicePower,100); statusArray[2] = test(result[0].deviceEnergy,1000); - //statusArray[3] = result[0].count; + statusArray[3] = result[0].count; } dataInformationFunction(statusArray); }); diff --git a/productionboard/src/main/resources/static/js/tankShell/device.js b/productionboard/src/main/resources/static/js/tankShell/device.js index 8d4cc3d..af7c1ba 100644 --- a/productionboard/src/main/resources/static/js/tankShell/device.js +++ b/productionboard/src/main/resources/static/js/tankShell/device.js @@ -88,7 +88,7 @@ const dataInformationFunction = (statusArray) => { ${test(res.deviceEnergy,100)}kW·h - 0 + ${res.count} `; diff --git a/productionboard/target/classes/application.yml b/productionboard/target/classes/application.yml index bea2bcb..142f6dd 100644 --- a/productionboard/target/classes/application.yml +++ b/productionboard/target/classes/application.yml @@ -12,6 +12,6 @@ mybatis-plus: mapper-locations: classpath*:/mapper/**Mapper.xml server: - port: 6069 + port: 6070 -in_id: 1 \ No newline at end of file +in_id: 2 \ No newline at end of file diff --git a/productionboard/target/classes/com/productionboard/entity/TankShellDevice/TankShellDeviceDataInformation.class b/productionboard/target/classes/com/productionboard/entity/TankShellDevice/TankShellDeviceDataInformation.class index e2c1358..43590e2 100644 Binary files a/productionboard/target/classes/com/productionboard/entity/TankShellDevice/TankShellDeviceDataInformation.class and b/productionboard/target/classes/com/productionboard/entity/TankShellDevice/TankShellDeviceDataInformation.class differ diff --git a/productionboard/target/classes/com/productionboard/mapper/AluminumDeviceDataInformationMapper.class b/productionboard/target/classes/com/productionboard/mapper/AluminumDeviceDataInformationMapper.class index 63530bf..2dc932d 100644 Binary files a/productionboard/target/classes/com/productionboard/mapper/AluminumDeviceDataInformationMapper.class and b/productionboard/target/classes/com/productionboard/mapper/AluminumDeviceDataInformationMapper.class differ diff --git a/productionboard/target/classes/com/productionboard/mapper/TankShellDeviceDataInformationMapper.class b/productionboard/target/classes/com/productionboard/mapper/TankShellDeviceDataInformationMapper.class index 2ac69e2..2df741f 100644 Binary files a/productionboard/target/classes/com/productionboard/mapper/TankShellDeviceDataInformationMapper.class and b/productionboard/target/classes/com/productionboard/mapper/TankShellDeviceDataInformationMapper.class differ diff --git a/productionboard/target/classes/com/productionboard/service/impl/AluminumDeviceInfoServiceImpl.class b/productionboard/target/classes/com/productionboard/service/impl/AluminumDeviceInfoServiceImpl.class index 33ada1a..1f7cac0 100644 Binary files a/productionboard/target/classes/com/productionboard/service/impl/AluminumDeviceInfoServiceImpl.class and b/productionboard/target/classes/com/productionboard/service/impl/AluminumDeviceInfoServiceImpl.class differ diff --git a/productionboard/target/classes/com/productionboard/service/impl/TankShellDeviceInfoServiceImpl.class b/productionboard/target/classes/com/productionboard/service/impl/TankShellDeviceInfoServiceImpl.class index 5e3c188..e129e63 100644 Binary files a/productionboard/target/classes/com/productionboard/service/impl/TankShellDeviceInfoServiceImpl.class and b/productionboard/target/classes/com/productionboard/service/impl/TankShellDeviceInfoServiceImpl.class differ diff --git a/productionboard/target/classes/static/js/aluminumLiner/index.js b/productionboard/target/classes/static/js/aluminumLiner/index.js index 2ee8c56..52f425b 100644 --- a/productionboard/target/classes/static/js/aluminumLiner/index.js +++ b/productionboard/target/classes/static/js/aluminumLiner/index.js @@ -8,7 +8,7 @@ $(() => { statusArray[0] = result[0].deviceStatus == "正常" ? "1" : "0"; statusArray[1] = test(result[0].devicePower,100); statusArray[2] = test(result[0].deviceEnergy,1000); - //statusArray[3] = result[0].count; + statusArray[3] = result[0].count; } dataInformationFunction(statusArray); }); diff --git a/productionboard/target/classes/static/js/tankShell/device.js b/productionboard/target/classes/static/js/tankShell/device.js index cc159da..af7c1ba 100644 --- a/productionboard/target/classes/static/js/tankShell/device.js +++ b/productionboard/target/classes/static/js/tankShell/device.js @@ -88,7 +88,7 @@ const dataInformationFunction = (statusArray) => { ${test(res.deviceEnergy,100)}kW·h - 0 + ${res.count} `; @@ -124,5 +124,5 @@ const runParamStatisticsFunction = (statusArray) => {
${statusArray[7]}
`; - $("#runParamStatistics").append(info); + $("#runParamStatistics").html(info); } \ No newline at end of file