瀏覽代碼

api 实体 irs

tags/24080901
PoffyZhang 1 年之前
父節點
當前提交
479021de1e
共有 2 個檔案被更改,包括 3 行新增3 行删除
  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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存