@@ -165,9 +165,9 @@ public class AppIrsManage { | |||||
log.info("查询应用目录 : {}",JSON.toJSONString(forEntity)); | log.info("查询应用目录 : {}",JSON.toJSONString(forEntity)); | ||||
if(Objects.nonNull(forEntity.getBody()) && Objects.nonNull(forEntity.getBody().getDatas()) | |||||
&& CollUtil.isNotEmpty(forEntity.getBody().getDatas().getApiApplySearchResult())){ | |||||
return forEntity.getBody().getDatas().getApiApplySearchResult().get(0); | |||||
if(Objects.nonNull(forEntity.getBody()) && Objects.nonNull(forEntity.getBody().getData()) | |||||
&& CollUtil.isNotEmpty(forEntity.getBody().getData().getApiApplySearchResult())){ | |||||
return forEntity.getBody().getData().getApiApplySearchResult().get(0); | |||||
} | } | ||||
return null; | return null; | ||||
} | } | ||||
@@ -186,9 +186,9 @@ public class AppIrsManage { | |||||
log.info("查询应用目录 : {}",JSON.toJSONString(forEntity)); | log.info("查询应用目录 : {}",JSON.toJSONString(forEntity)); | ||||
if(Objects.nonNull(forEntity.getBody()) && Objects.nonNull(forEntity.getBody().getDatas()) | |||||
&& CollUtil.isNotEmpty(forEntity.getBody().getDatas().getApiApplySearchResult())){ | |||||
return forEntity.getBody().getDatas().getApiApplySearchResult(); | |||||
if(Objects.nonNull(forEntity.getBody()) && Objects.nonNull(forEntity.getBody().getData()) | |||||
&& CollUtil.isNotEmpty(forEntity.getBody().getData().getApiApplySearchResult())){ | |||||
return forEntity.getBody().getData().getApiApplySearchResult(); | |||||
} | } | ||||
return Collections.emptyList(); | return Collections.emptyList(); | ||||
} | } | ||||
@@ -15,6 +15,5 @@ import java.util.List; | |||||
public class ApiDTO { | public class ApiDTO { | ||||
private String code; | private String code; | ||||
private String msg; | private String msg; | ||||
private String data; | |||||
private ApiSearchResult datas; | |||||
private ApiSearchResult data; | |||||
} | } |
@@ -1031,12 +1031,15 @@ public class TodoCenterManage { | |||||
//批量删除 | //批量删除 | ||||
projectApplicationService.remove(Wrappers.lambdaQuery(ProjectApplication.class) | projectApplicationService.remove(Wrappers.lambdaQuery(ProjectApplication.class) | ||||
.eq(ProjectApplication::getProjectId,project.getId())); | .eq(ProjectApplication::getProjectId,project.getId())); | ||||
projectApplicationService.remove(Wrappers.lambdaQuery(ProjectApplication.class) | |||||
.eq(ProjectApplication::getProjectCode,project.getProjectCode())); | |||||
if(isApp && CollUtil.isNotEmpty(projectDto.getApplicationList())){ | if(isApp && CollUtil.isNotEmpty(projectDto.getApplicationList())){ | ||||
//批量添加 | //批量添加 | ||||
List<ProjectApplication> applications = projectDto.getApplicationList().stream().map(application -> { | List<ProjectApplication> applications = projectDto.getApplicationList().stream().map(application -> { | ||||
ProjectApplication projectApplication = new ProjectApplication(); | ProjectApplication projectApplication = new ProjectApplication(); | ||||
BeanUtils.copyProperties(application, projectApplication); | BeanUtils.copyProperties(application, projectApplication); | ||||
projectApplication.setProjectId(project.getId()); | projectApplication.setProjectId(project.getId()); | ||||
projectApplication.setProjectCode(project.getProjectCode()); | |||||
return projectApplication; | return projectApplication; | ||||
}).collect(Collectors.toList()); | }).collect(Collectors.toList()); | ||||
projectApplicationService.saveBatch(applications); | projectApplicationService.saveBatch(applications); | ||||