Explorar el Código

api 实体 irs

master
PoffyZhang hace 1 año
padre
commit
479021de1e
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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);


Cargando…
Cancelar
Guardar