This commit is contained in:
xy
2025-07-17 10:41:14 +08:00
parent 882d56a2c5
commit 94b5b92991
2 changed files with 5 additions and 1 deletions

View File

@@ -95,7 +95,7 @@ public class InfluxdbCsCommunicateServiceImpl implements ICsCommunicateService {
.select(PqsCommunicate::getDevId) .select(PqsCommunicate::getDevId)
.select(PqsCommunicate::getDescription) .select(PqsCommunicate::getDescription)
.select(PqsCommunicate::getType) .select(PqsCommunicate::getType)
.le(PqsCommunicate::getTime, lineParam.getEndTime()) .between(PqsCommunicate::getTime, lineParam.getStartTime(), lineParam.getEndTime())
.timeDesc() .timeDesc()
.limit(1); .limit(1);
List<PqsCommunicate> list = pqsCommunicateMapper.selectByQueryWrapper(influxQueryWrapper); List<PqsCommunicate> list = pqsCommunicateMapper.selectByQueryWrapper(influxQueryWrapper);

View File

@@ -188,6 +188,10 @@ public class RStatOnlineRateDServiceImpl extends MppServiceImpl<RStatOnlineRateD
} catch (ParseException e) { } catch (ParseException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
} else {
if (online.equals(communicateDataOld.get(0).getType())){
minute = InfluxDBPublicParam.DAY_MINUTE;
}
} }
} }
} }