|
|
@ -79,7 +79,9 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
|
.filter(dcEmergencyPlans1 -> StringUtils.isNotEmpty(dcEmergencyPlans1.getControllableDevice())) |
|
|
|
.forEach(dcEmergencyPlans1 -> { |
|
|
|
List<String> deviceIds = Arrays.asList(dcEmergencyPlans1.getControllableDevice().split(",")); |
|
|
|
List<DcDevice> deviceList = dcDeviceService.listByIds(deviceIds); |
|
|
|
LambdaQueryWrapper<DcDevice> lambdaQueryWrapper = new LambdaQueryWrapper<>(); |
|
|
|
lambdaQueryWrapper.in(DcDevice::getIotDeviceId, deviceIds); |
|
|
|
List<DcDevice> deviceList = dcDeviceService.list(lambdaQueryWrapper); |
|
|
|
StringBuilder stringBuilder = new StringBuilder(); |
|
|
|
deviceList.forEach(dcDevice -> { |
|
|
|
stringBuilder.append(","); |
|
|
|