|
@@ -126,7 +126,9 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
JMap<Long, DeviceAlgorithmChargingDto.CountVo> cover = new JArrayList<>(data).toMap(DeviceAlgorithmChargingDto.CountVo::getDeviceId).cover();
|
|
JMap<Long, DeviceAlgorithmChargingDto.CountVo> cover = new JArrayList<>(data).toMap(DeviceAlgorithmChargingDto.CountVo::getDeviceId).cover();
|
|
algorithmChargingVos.forEach(algorithmChargingVo -> {
|
|
algorithmChargingVos.forEach(algorithmChargingVo -> {
|
|
DeviceAlgorithmChargingDto.CountVo countVo = cover.get(algorithmChargingVo.getDeviceId());
|
|
DeviceAlgorithmChargingDto.CountVo countVo = cover.get(algorithmChargingVo.getDeviceId());
|
|
- algorithmChargingVo.setAlgorithmChargingSize(countVo.getCount());
|
|
|
|
|
|
+ algorithmChargingVo.setAlgorithmChargingSize(countVo.getCount())
|
|
|
|
+ .setAlgorithmChargingLength(countVo.getSize())
|
|
|
|
+ .setArrearageBalance(countVo.getArrearageBalance());
|
|
});
|
|
});
|
|
return R.ok(algorithmChargingVoPageBean);
|
|
return R.ok(algorithmChargingVoPageBean);
|
|
}
|
|
}
|
|
@@ -813,7 +815,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
Long districtId = v.getDistrictId();
|
|
Long districtId = v.getDistrictId();
|
|
vo.setDeviceNum(v.getDeviceNum());
|
|
vo.setDeviceNum(v.getDeviceNum());
|
|
vo.setDistrictId(v.getDistrictId());
|
|
vo.setDistrictId(v.getDistrictId());
|
|
- vo.setDistrictName(v.getDistrictId()==-1L ? "未分配区域" : districtMap.get(v.getDistrictId()));
|
|
|
|
|
|
+ vo.setDistrictName(v.getDistrictId() == -1L ? "未分配区域" : districtMap.get(v.getDistrictId()));
|
|
//区域下的设备列表
|
|
//区域下的设备列表
|
|
List<DeviceInfoDto.MercHomeDeviceVo> deviceInfos = BeanUtil.copyToList(deviceMap.get(districtId), DeviceInfoDto.MercHomeDeviceVo.class);
|
|
List<DeviceInfoDto.MercHomeDeviceVo> deviceInfos = BeanUtil.copyToList(deviceMap.get(districtId), DeviceInfoDto.MercHomeDeviceVo.class);
|
|
if (CollUtil.isEmpty(deviceInfos)) {
|
|
if (CollUtil.isEmpty(deviceInfos)) {
|