parent
5912500560
commit
4a18fee706
|
@ -382,9 +382,8 @@ public class ApiTestEnvironmentService {
|
||||||
|
|
||||||
private String getSystemIdByProjectId(String projectId){
|
private String getSystemIdByProjectId(String projectId){
|
||||||
ProjectService projectService = CommonBeanFactory.getBean(ProjectService.class);
|
ProjectService projectService = CommonBeanFactory.getBean(ProjectService.class);
|
||||||
|
|
||||||
if(projectService != null){
|
|
||||||
Project project = projectService.getProjectById(projectId);
|
Project project = projectService.getProjectById(projectId);
|
||||||
|
if(project != null){
|
||||||
project = projectService.checkSystemId(project);
|
project = projectService.checkSystemId(project);
|
||||||
return projectService.getSystemIdByProjectId(projectId);
|
return projectService.getSystemIdByProjectId(projectId);
|
||||||
}else {
|
}else {
|
||||||
|
|
|
@ -412,6 +412,7 @@ public class ProjectService {
|
||||||
|
|
||||||
public Project getProjectById(String id) {
|
public Project getProjectById(String id) {
|
||||||
Project project = projectMapper.selectByPrimaryKey(id);
|
Project project = projectMapper.selectByPrimaryKey(id);
|
||||||
|
if(project != null){
|
||||||
String createUser = project.getCreateUser();
|
String createUser = project.getCreateUser();
|
||||||
if (StringUtils.isNotBlank(createUser)) {
|
if (StringUtils.isNotBlank(createUser)) {
|
||||||
User user = userMapper.selectByPrimaryKey(createUser);
|
User user = userMapper.selectByPrimaryKey(createUser);
|
||||||
|
@ -419,6 +420,7 @@ public class ProjectService {
|
||||||
project.setCreateUser(user.getName());
|
project.setCreateUser(user.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return project;
|
return project;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue