fix:任务提出人没有关联需求显示任务创建人
This commit is contained in:
@@ -709,6 +709,15 @@ public class TaskServiceImpl implements ITaskService {
|
||||
if (ObjectUtils.isNotEmpty(userResp) && ObjectUtils.isNotEmpty(userResp.getData())) {
|
||||
newTaskVo.setSubmitterName(userResp.getData().getNickname());
|
||||
}
|
||||
} else {
|
||||
// 提出人:需求的创建人没有就取任务的创建人
|
||||
newTaskVo.setSubmitter(newTaskVo.getCreator());
|
||||
SdmResponse<CIDUserResp> userResp = sysUserFeignClient.queryUserDetail(
|
||||
UserQueryReq.builder().userId(newTaskVo.getCreator()).build()
|
||||
);
|
||||
if (ObjectUtils.isNotEmpty(userResp) && ObjectUtils.isNotEmpty(userResp.getData())) {
|
||||
newTaskVo.setSubmitterName(userResp.getData().getNickname());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1352,6 +1361,7 @@ public class TaskServiceImpl implements ITaskService {
|
||||
for (Long currentUserId : currentUserIdList) {
|
||||
updatePermission(currentUserId,taskId);
|
||||
}
|
||||
// 对关联的需求文件夹设置权限
|
||||
|
||||
|
||||
// if (StringUtils.isNotBlank(req.getEMemberList())) {
|
||||
|
||||
Reference in New Issue
Block a user