设备申请新增设备详情字段
This commit is contained in:
parent
64e53c3535
commit
85d1e9eddf
|
@ -91,6 +91,10 @@ public class TbDeviceApplyServiceImpl extends CrudServiceImpl<TbDeviceApplyDao,
|
||||||
params.put("states", stateList);
|
params.put("states", stateList);
|
||||||
List<TbDeviceApplyDTO> dtoList = tbDeviceApplyDao.queryList(params);
|
List<TbDeviceApplyDTO> dtoList = tbDeviceApplyDao.queryList(params);
|
||||||
List<TbDeviceApplyDTO> result = dtoList.stream().skip((curPage - 1) * limit).limit(limit).collect(Collectors.toList());
|
List<TbDeviceApplyDTO> result = dtoList.stream().skip((curPage - 1) * limit).limit(limit).collect(Collectors.toList());
|
||||||
|
result.stream().forEach(it -> {
|
||||||
|
it.setTbDeviceDTO(tbDeviceService.get(it.getDeviceId()));
|
||||||
|
it.setAuditorName(sysUserService.get(it.getAuditor()).getRealName());
|
||||||
|
});
|
||||||
return new PageData(result, dtoList.size());
|
return new PageData(result, dtoList.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue