|
@@ -121,6 +121,10 @@ public class PatentStarApiService {
|
|
|
// 判断请求是否成功
|
|
|
if (response.isSuccessful()) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(Objects.requireNonNull(response.body()).string());
|
|
|
+ if(jsonObject.get("Ret").equals(500)){
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
JSONObject Data = (JSONObject) jsonObject.get("Data");
|
|
|
List<StarPatentVO> starPatentVOS = JSONArray.parseArray(Data.get("List").toString(), StarPatentVO.class);
|
|
|
starPatentVOS.forEach(item->{
|
|
@@ -137,6 +141,19 @@ public class PatentStarApiService {
|
|
|
item.getApplicant().add(patentApplicant);
|
|
|
}
|
|
|
);
|
|
|
+ if(item.getCurrentApplicantStr()!=null){
|
|
|
+ List<String> cApplicants = Arrays.asList(item.getCurrentApplicantStr().split(";"));
|
|
|
+ cApplicants.forEach(
|
|
|
+ tem->{
|
|
|
+ PatentApplicant patentApplicant =new PatentApplicant();
|
|
|
+ patentApplicant.setType(2);
|
|
|
+ patentApplicant.setDataType(1);
|
|
|
+ patentApplicant.setName(tem);
|
|
|
+ item.getApplicant().add(patentApplicant);
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
// 打印服务端返回结果
|
|
|
// return Objects.requireNonNull(response.body()).string();
|