Browse Source

api 实体 irs

tags/24080901
PoffyZhang 1 year ago
parent
commit
479021de1e
2 changed files with 3 additions and 3 deletions
  1. +2
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/irs/model/dto/ApiDTO.java
  2. +1
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ApplicationManage.java

+ 2
- 1
pmapi/src/main/java/com/ningdatech/pmapi/irs/model/dto/ApiDTO.java View File

@@ -15,5 +15,6 @@ import java.util.List;
public class ApiDTO {
private String code;
private String msg;
private ApiSearchResult data;
private String data;
private ApiSearchResult datas;
}

+ 1
- 2
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ApplicationManage.java View File

@@ -151,8 +151,7 @@ public class ApplicationManage {
List<String> projectCodes = page.getRecords().stream().map(Project::getProjectCode).collect(Collectors.toList());
//要去查询应用
List<ProjectApplication> apps = applicationService.list(Wrappers.lambdaQuery(ProjectApplication.class)
.in(ProjectApplication::getProjectCode, projectCodes)
.isNull(ProjectApplication::getAppCode));
.in(ProjectApplication::getProjectCode, projectCodes));
Map<String, List<ProjectApplication>> appMap = apps.stream().collect(Collectors.groupingBy(ProjectApplication::getProjectCode));
List<ProjectDetailVO> res = page.getRecords().stream().map(p -> {
ProjectDetailVO vo = BeanUtil.copyProperties(p,ProjectDetailVO.class);


Loading…
Cancel
Save