Commit 8e46fcb1 authored by wdy's avatar wdy

Merge branch 'wangdingyi' into 'dev'

创新基地查询任务详情

See merge request !422
parents 273915a1 2c27ca99
...@@ -90,4 +90,10 @@ public interface ReviewSceneChangeTaskService extends IService<ReviewSceneChange ...@@ -90,4 +90,10 @@ public interface ReviewSceneChangeTaskService extends IService<ReviewSceneChange
* @return * @return
*/ */
List<ReviewSceneChangeTaskResponse> findFinishList(Long userId, ReviewSceneChangeTaskFindFinishRequest request); List<ReviewSceneChangeTaskResponse> findFinishList(Long userId, ReviewSceneChangeTaskFindFinishRequest request);
/**
* 创新基地查询任务详情
* @return
*/
ReviewSceneChangeTask getBySceneChange(Long id);
} }
...@@ -367,6 +367,24 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha ...@@ -367,6 +367,24 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
return reviewSceneChangeTask; return reviewSceneChangeTask;
} }
@Override
public ReviewSceneChangeTask getBySceneChange(Long id) {
ReviewSceneChangeTask reviewSceneChangeTask = getById(id);
//查询审核人员
List<Long> reviewerIdList = sysUserRoleMapper.selectReviewerIdByRoleId(ReviewSceneChangeTask.INNOVATION_BASE_ID);
List<SysUser> reviewerList = sysUserService.selectUserListByIds(reviewerIdList);
Set<String> reviewerNameSet = new HashSet<>();
for (SysUser reviewer : reviewerList) {
reviewerNameSet.add(reviewer.getNickName());
}
// 生成审核人员名字字符串
String reviewerNames = String.join("、", reviewerNameSet);
reviewSceneChangeTask.setReviewer(reviewerNames);
return reviewSceneChangeTask;
}
} }
......
...@@ -129,4 +129,16 @@ public class ReviewSceneChangeTaskController extends BaseController { ...@@ -129,4 +129,16 @@ public class ReviewSceneChangeTaskController extends BaseController {
return getDataTable(reviewSceneChangeTaskService.findFinishList(getUserId(),request)); return getDataTable(reviewSceneChangeTaskService.findFinishList(getUserId(),request));
} }
/**
* 创新基地查询任务详情
* @return
*/
@ApiOperation("查询任务详情")
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@RequestMapping(method = RequestMethod.POST, value = "/innovationBaseGetById")
public R<ReviewSceneChangeTask> innovationBaseGetById(@Validated @RequestBody ReviewSceneChangeTaskGetInfoRequest request) {
return R.ok(reviewSceneChangeTaskService.getBySceneChange(request.getId()));
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment