Pārlūkot izejas kodu

debug 状态 谓一致

master
PoffyZhang pirms 1 gada
vecāks
revīzija
b10c5916ae
3 mainītis faili ar 10 papildinājumiem un 8 dzēšanām
  1. +6
    -6
      pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java
  2. +1
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/irs/model/dto/ApiDTO.java
  3. +3
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java

+ 6
- 6
pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java Parādīt failu

@@ -165,9 +165,9 @@ public class AppIrsManage {

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;
}
@@ -186,9 +186,9 @@ public class AppIrsManage {

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();
}


+ 1
- 2
pmapi/src/main/java/com/ningdatech/pmapi/irs/model/dto/ApiDTO.java Parādīt failu

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

+ 3
- 0
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java Parādīt failu

@@ -1031,12 +1031,15 @@ public class TodoCenterManage {
//批量删除
projectApplicationService.remove(Wrappers.lambdaQuery(ProjectApplication.class)
.eq(ProjectApplication::getProjectId,project.getId()));
projectApplicationService.remove(Wrappers.lambdaQuery(ProjectApplication.class)
.eq(ProjectApplication::getProjectCode,project.getProjectCode()));
if(isApp && CollUtil.isNotEmpty(projectDto.getApplicationList())){
//批量添加
List<ProjectApplication> applications = projectDto.getApplicationList().stream().map(application -> {
ProjectApplication projectApplication = new ProjectApplication();
BeanUtils.copyProperties(application, projectApplication);
projectApplication.setProjectId(project.getId());
projectApplication.setProjectCode(project.getProjectCode());
return projectApplication;
}).collect(Collectors.toList());
projectApplicationService.saveBatch(applications);


Notiek ielāde…
Atcelt
Saglabāt