|
@@ -452,11 +452,6 @@ public class LeanModelStatistics {
|
|
|
fpgGatherData.setFpgModelUpdatetime(new Date());
|
|
|
try {
|
|
|
BigDecimal runTime = new BigDecimal("300");
|
|
|
- // 设备停止运行不统计
|
|
|
- if (fpgGatherData.getRunCurrent().compareTo(new BigDecimal(systemVariable.getDefaultValue())) < 0) { // 设备停止运行
|
|
|
- fpgGatherUpdateList.add(fpgGatherData);
|
|
|
- return;
|
|
|
- }
|
|
|
String finalDatestr = "";
|
|
|
// 统计单位
|
|
|
if("minute".equals(fpgLeanModeInfo.getTotalUnit())){ // 分钟
|
|
@@ -501,6 +496,11 @@ public class LeanModelStatistics {
|
|
|
fpgGatherUpdateList.add(fpgGatherData);
|
|
|
return;
|
|
|
}
|
|
|
+ // 设备停止运行不统计
|
|
|
+ if (fpgGatherData.getRunCurrent().compareTo(new BigDecimal(systemVariable.getDefaultValue())) < 0) { // 设备停止运行
|
|
|
+ fpgGatherUpdateList.add(fpgGatherData);
|
|
|
+ return;
|
|
|
+ }
|
|
|
// 定义尖峰平谷
|
|
|
AtomicReference<String> jfpgStr = new AtomicReference<>("");
|
|
|
// 判断尖峰平谷时段
|