Browse Source

debug 状态 谓一致

tags/24080901
PoffyZhang 1 year ago
parent
commit
b10c5916ae
3 changed files with 10 additions and 8 deletions
  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 View File

@@ -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 View File

@@ -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 View File

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


Loading…
Cancel
Save