|
@@ -54,6 +54,7 @@ import java.util.*;
|
|
import java.util.concurrent.TimeUnit;
|
|
import java.util.concurrent.TimeUnit;
|
|
import java.util.regex.Matcher;
|
|
import java.util.regex.Matcher;
|
|
import java.util.regex.Pattern;
|
|
import java.util.regex.Pattern;
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 调用外部接口的Service类 PCS:权限系统
|
|
* 调用外部接口的Service类 PCS:权限系统
|
|
@@ -1151,12 +1152,15 @@ public class PatentStarApiService {
|
|
return this.getPictureApi(appNo);
|
|
return this.getPictureApi(appNo);
|
|
}
|
|
}
|
|
|
|
|
|
- public List<ExternalLegalStatusDTO> getLegalStatus(String appNo) {
|
|
|
|
- List<ExternalLegalStatusDTO> dtos = new ArrayList<>();
|
|
|
|
|
|
+ public List<String> getLegalStatus(String appNo) {
|
|
|
|
+ List<String> list = new ArrayList<>();
|
|
String cnLegalApi = this.getCnLegalApi(appNo);
|
|
String cnLegalApi = this.getCnLegalApi(appNo);
|
|
if (StringUtils.isNotEmpty(cnLegalApi)) {
|
|
if (StringUtils.isNotEmpty(cnLegalApi)) {
|
|
- dtos = JSONArray.parseArray(cnLegalApi, ExternalLegalStatusDTO.class);
|
|
|
|
|
|
+ List<ExternalLegalStatusDTO> statusDTOS = JSONArray.parseArray(cnLegalApi, ExternalLegalStatusDTO.class);
|
|
|
|
+ if (CollectionUtils.isEmpty(statusDTOS)) {
|
|
|
|
+ list = statusDTOS.stream().map(ExternalLegalStatusDTO::getLegalStatus).collect(Collectors.toList());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- return dtos;
|
|
|
|
|
|
+ return list;
|
|
}
|
|
}
|
|
}
|
|
}
|