|
|
|
|
@ -498,12 +498,11 @@ public class DeviceLedgerServiceImpl implements DeviceLedgerService {
|
|
|
|
|
.collect(Collectors.toMap(DeviceLineDO::getId, Function.identity(), (a, b) -> a));
|
|
|
|
|
PageResult<DeviceLedgerDO> deviceLedgerDOPageResult = deviceLedgerMapper.selectPage(pageReqVO);
|
|
|
|
|
for (DeviceLedgerDO deviceLedgerDO : deviceLedgerDOPageResult.getList()) {
|
|
|
|
|
if (deviceLedgerDO.getDeviceType()!=null){
|
|
|
|
|
DeviceTypeDO deviceTypeDO = deviceTypeMapper.selectById(deviceLedgerDO.getDeviceType());
|
|
|
|
|
deviceLedgerDO.setTypeName(deviceTypeDO.getName());
|
|
|
|
|
}
|
|
|
|
|
if(deviceLedgerDO.getDeviceLine()!=null&&CollUtil.isNotEmpty(collect.get(deviceLedgerDO.getDeviceLine().longValue()))){
|
|
|
|
|
deviceLedgerDO.setWorkshopName(collect.get(deviceLedgerDO.getDeviceLine().longValue()).get(0).getName());
|
|
|
|
|
if(deviceLedgerDO.getDeviceLine()!=null){
|
|
|
|
|
List<DeviceLineDO> deviceLines = collect.get(deviceLedgerDO.getDeviceLine());
|
|
|
|
|
if(CollUtil.isNotEmpty(deviceLines)){
|
|
|
|
|
deviceLedgerDO.setWorkshopName(deviceLines.get(0).getName());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
fillTopCategoryInfo(deviceLedgerDO, deviceLineMap);
|
|
|
|
|
}
|
|
|
|
|
|