取消继电器不可重复限制
This commit is contained in:
parent
3d1356d0b7
commit
fe033c805d
|
|
@ -40,8 +40,9 @@ import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: surv_device_deploy
|
* @Description: surv_device_deploy
|
||||||
* @Author: jeecg-boot
|
* @Author: jeecg-boot
|
||||||
* @Date: 2023-06-24
|
* @Date: 2023-06-24
|
||||||
|
|
@ -436,7 +437,12 @@ public class SurvDeviceDeployController extends JeecgController<SurvDeviceDeploy
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//拉取完后,顺便触发一次查询所有继电器和运行状态
|
//拉取完后,顺便触发一次查询所有继电器和运行状态
|
||||||
boolean b= p3Service.sendMqttDeviceQuery(deploy,variables);
|
if(!variables.isEmpty()) {
|
||||||
|
List<String> fianlVariables = variables.stream()
|
||||||
|
.distinct()
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
boolean b = p3Service.sendMqttDeviceQuery(deploy, fianlVariables);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
List<SurvDeviceDeployRelay> pageList = relayService.relayList(deployId,null);
|
List<SurvDeviceDeployRelay> pageList = relayService.relayList(deployId,null);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue