|
|
@@ -423,6 +423,10 @@ public class OaUniversalServiceImpl implements OaUniversalService {
|
|
|
|
|
|
@Override
|
|
|
public OaUniversalRespVO getOaUniversal(Long id) {
|
|
|
+ // 登录人信息
|
|
|
+ Long loginUserId = SecurityFrameworkUtils.getLoginUserId();
|
|
|
+ // TODO DP 根据登录人查询出对应的员工信息
|
|
|
+
|
|
|
OaUniversalDO oaUniversalDO = oaUniversalMapper.selectById(id);
|
|
|
OaUniversalRespVO oaUniversalRespVO = BeanUtils.toBean(oaUniversalDO, OaUniversalRespVO.class);
|
|
|
if (oaUniversalDO.getDeptId() != null) {
|
|
|
@@ -432,6 +436,17 @@ public class OaUniversalServiceImpl implements OaUniversalService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ String procInstId = oaUniversalDO.getProcInstId();
|
|
|
+ if (StrUtil.isNotBlank(procInstId)) {
|
|
|
+ Task task = taskService.createTaskQuery()
|
|
|
+ .processInstanceId(procInstId)
|
|
|
+ .taskAssignee(String.valueOf(loginUserId))
|
|
|
+ .singleResult();
|
|
|
+ if (task != null) {
|
|
|
+ oaUniversalRespVO.setTaskId(task.getId());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// 附件列表
|
|
|
List<FileDTO> fileList = fileApi.getFileDTOListByBiz(oaUniversalDO.getUniversalId());
|
|
|
oaUniversalRespVO.setFileList(fileList);
|