|
@@ -143,7 +143,7 @@ public class DeviceCreateIdsServiceImpl extends ServiceImpl<DeviceCreateIdsMappe
|
|
if (!isWhere) {
|
|
if (!isWhere) {
|
|
List<Long> deviceIds = exportQrCode.getDeviceIds();
|
|
List<Long> deviceIds = exportQrCode.getDeviceIds();
|
|
if (Emptys.check(deviceIds)) {
|
|
if (Emptys.check(deviceIds)) {
|
|
- deviceIds.forEach(deviceId -> list.add(sysDictRedis.getValue() + deviceId));
|
|
|
|
|
|
+ deviceIds.forEach(deviceId -> list.add(deviceId.toString()));
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
LambdaQueryWrapper<DeviceCreateIds> lambdaQueryWrapper = new MybatisPlusQuery().eqWrapper(exportQrCode, DeviceCreateIds.class)
|
|
LambdaQueryWrapper<DeviceCreateIds> lambdaQueryWrapper = new MybatisPlusQuery().eqWrapper(exportQrCode, DeviceCreateIds.class)
|
|
@@ -158,6 +158,8 @@ public class DeviceCreateIdsServiceImpl extends ServiceImpl<DeviceCreateIdsMappe
|
|
if (!Emptys.check(list)) {
|
|
if (!Emptys.check(list)) {
|
|
throw new CommRuntimeException("没有导出的数据");
|
|
throw new CommRuntimeException("没有导出的数据");
|
|
}
|
|
}
|
|
- QRCodeUtils.create(list, 400, 400, "back1.png", list).download(list);
|
|
|
|
|
|
+ List<String> infos = new ArrayList<>();
|
|
|
|
+ list.forEach(deviceId -> infos.add(sysDictRedis.getValue() + deviceId));
|
|
|
|
+ QRCodeUtils.create(infos, 400, 400, "back1.png", list).download(list);
|
|
}
|
|
}
|
|
}
|
|
}
|