|
@@ -1859,6 +1859,12 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
List<DeviceInfoDto.Vo2> records = pageBean.getRecords();
|
|
|
JMap<Long, List<DevicePart>> cover;
|
|
|
if (Emptys.check(records)) {
|
|
|
+ JMap<Long, DeviceInfoQueryPage> queryPageJMap = new JArrayList<>(iPage.getRecords()).toMap(DeviceInfoQueryPage::getDeviceId).cover();
|
|
|
+ records.forEach(vo2 -> {
|
|
|
+ DeviceInfoQueryPage deviceInfoQueryPage = queryPageJMap.get(vo2.getDeviceId());
|
|
|
+ DeviceSysinfoDto.Vo deviceSysinfo = deviceInfoQueryPage.getDeviceSysinfo();
|
|
|
+ vo2.setSimIsp(deviceSysinfo.getSimIsp()).setSimIccid(deviceSysinfo.getSimIccid());
|
|
|
+ });
|
|
|
List<DevicePart> deviceParts = devicePartService.list(new LambdaQueryWrapper<DevicePart>()
|
|
|
.in(DevicePart::getDeviceId, new JArrayList<>(records).getProperty(DeviceInfoDto.Vo2::getDeviceId))
|
|
|
.orderByDesc(DevicePart::getCode)
|