Ver código fonte

数改vo

tags/24080901
PoffyZhang 1 ano atrás
pai
commit
9da5b3380e
2 arquivos alterados com 3 adições e 1 exclusões
  1. +2
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java
  2. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/model/vo/ProjectDraftVO.java

+ 2
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java Ver arquivo

@@ -315,6 +315,7 @@ public class DeclaredProjectManage {
List<ProjectDraftVO> res = page.getRecords().stream().map(record -> {
ProjectDraftVO vo = new ProjectDraftVO();
BeanUtils.copyProperties(record, vo);
vo.setBizDomain(Objects.nonNull(record.getBizDomain()) ? String.valueOf(record.getBizDomain()) : StringUtils.EMPTY);
return vo;
}).collect(Collectors.toList());
return PageVo.of(res, page.getTotal());
@@ -324,6 +325,7 @@ public class DeclaredProjectManage {
ProjectDraft draft = projectDraftService.getById(id);
ProjectDraftVO vo = new ProjectDraftVO();
BeanUtils.copyProperties(draft, vo);
vo.setBizDomain(Objects.nonNull(draft.getBizDomain()) ? String.valueOf(draft.getBizDomain()) : StringUtils.EMPTY);
if(StringUtils.isNotBlank(draft.getProjectApplicationList())){
vo.setApplicationList(JSON.parseArray(draft.getProjectApplicationList(),ProjectApplication.class));
}


+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/model/vo/ProjectDraftVO.java Ver arquivo

@@ -101,7 +101,7 @@ public class ProjectDraftVO implements Serializable {
private Integer isDigitalReform;

@ApiModelProperty("综合业务领域")
private Integer bizDomain;
private String bizDomain;

@ApiModelProperty("建设层级 1:国家级 2:省级 3:省本级 4:市级 5:市本级 6:区县 7乡镇")
private Integer buildLevel;


Carregando…
Cancelar
Salvar