1.用能系统空调关机策略

2.终端模块对外接口
This commit is contained in:
2022-08-04 16:32:05 +08:00
parent 9a26722f14
commit 591519d857
2 changed files with 3 additions and 15 deletions

View File

@@ -91,8 +91,8 @@ public class EleAirStrategyServiceImpl extends ServiceImpl<AirStrategyMapper, Ai
@Value("${mqtt.client-id}")
private String clientId;
//徐扬执行器 5 陈道飞执行器6 3 18数据库测试执行器
private final Integer xxlGroup = 6;
//徐扬执行器 5 陈道飞执行器 6 18数据库测试执行器 3
private final Integer xxlGroup = 5;
@Override
@@ -482,11 +482,10 @@ public class EleAirStrategyServiceImpl extends ServiceImpl<AirStrategyMapper, Ai
//如果是关闭操作
if ("close".equals(operation)) {
StringBuilder temSql = assToInfluxParam(lineIds);
String sql = "select LineId from air_data_Real where " + temSql + " and ACInStat = 'On'";
String sql = "select LineId,ACInStat from air_data_Real where " + temSql + " and ACInStat = 'On'";
QueryResult result = influxDbUtils.query(sql);
List<QueryResult.Series> listSeries = result.getResults().get(0).getSeries();
if (!CollectionUtils.isEmpty(listSeries)) {
System.out.println(listSeries);
List<String> lineIdTem = new ArrayList<>();
listSeries.get(0).getValues().forEach(item -> {
lineIdTem.add(item.get(1).toString());