Selaa lähdekoodia

fix 专家所填信息消失的问题

tags/24082201
niohe·erbao 1 vuosi sitten
vanhempi
commit
4d9c7b8a61
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. +6
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/expert/assembler/ExpertAdminExpertManageAssembler.java

+ 6
- 0
pmapi/src/main/java/com/ningdatech/pmapi/expert/assembler/ExpertAdminExpertManageAssembler.java Näytä tiedosto

@@ -103,6 +103,9 @@ public class ExpertAdminExpertManageAssembler {
} }


public List<DictionaryFieldInfo> assembleDictionaryName(List<DictionaryFieldInfo> collect) { public List<DictionaryFieldInfo> assembleDictionaryName(List<DictionaryFieldInfo> collect) {
if (CollectionUtil.isEmpty(collect)){
return new ArrayList<>();
}
return collect.stream().peek(r -> { return collect.stream().peek(r -> {
DictionaryDTO dictionaryDTO = dictionaryCache.getByCode(r.getDictionaryCode()); DictionaryDTO dictionaryDTO = dictionaryCache.getByCode(r.getDictionaryCode());
if (Objects.nonNull(dictionaryDTO)) { if (Objects.nonNull(dictionaryDTO)) {
@@ -113,6 +116,9 @@ public class ExpertAdminExpertManageAssembler {




public List<TagFieldInfo> assembleTagName(List<TagFieldInfo> collect) { public List<TagFieldInfo> assembleTagName(List<TagFieldInfo> collect) {
if (CollectionUtil.isEmpty(collect)){
return new ArrayList<>();
}
return collect.stream().peek(r -> { return collect.stream().peek(r -> {
TagDTO tagDTO = tagCache.getByTagCode(r.getTagCode()); TagDTO tagDTO = tagCache.getByTagCode(r.getTagCode());
if (Objects.nonNull(tagDTO)) { if (Objects.nonNull(tagDTO)) {


Loading…
Peruuta
Tallenna