|
@@ -369,6 +369,49 @@ public class OutInterfaceService {
|
|
|
.build();
|
|
|
return Objects.requireNonNull(okHttpClient.newCall(request).execute().body()).string();
|
|
|
}
|
|
|
+
|
|
|
+ public String getConPantentNos(PatentVO patentVO, int type) throws IOException {
|
|
|
+ LambdaQueryWrapper<ImportTask> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper.eq(ImportTask::getReportId, patentVO.getReportId());
|
|
|
+ List<ImportTask> importTasks = importTaskService.list(queryWrapper);
|
|
|
+ List<Integer> taskIds = importTasks.stream().map(ImportTask::getId).collect(Collectors.toList());
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ Report report = reportService.getById(patentVO.getReportId());
|
|
|
+ if (type == 0) {
|
|
|
+ map.put("projectId", report.getProjectId());
|
|
|
+ map.put("importTaskId", taskIds);
|
|
|
+ map.put("startNumber", patentVO.getStartNumber());
|
|
|
+ map.put("endNumber", patentVO.getEndNumber());
|
|
|
+ }
|
|
|
+ //专利名称
|
|
|
+ map.put("patentName",patentVO.getPatentName());
|
|
|
+ //专利摘要
|
|
|
+ map.put("abstractStr",patentVO.getAbstractStr());
|
|
|
+ map.put("size", patentVO.getSize());
|
|
|
+ map.put("current", patentVO.getCurrent());
|
|
|
+ map.put("patentNos", patentVO.getPatentNos());
|
|
|
+ //申请人名字
|
|
|
+ map.put("applicationName",patentVO.getApplicationName());
|
|
|
+ //申请号
|
|
|
+ map.put("applicationNo",patentVO.getApplicationNo());
|
|
|
+ //专利号
|
|
|
+ map.put("patentNo",patentVO.getPatentNo());
|
|
|
+ //权利人名字
|
|
|
+ map.put("obligeeName" ,patentVO.getObligeeName());
|
|
|
+ map.put("notInPatentNos", patentVO.getNotInPatentNos());
|
|
|
+ //分类号(IPC,UPC,CPC)
|
|
|
+ map.put("numberCpc",patentVO.getNumberCpc());
|
|
|
+ map.put("numberIpc",patentVO.getNumberIpc());
|
|
|
+ map.put("numberUpc",patentVO.getNumberUpc());
|
|
|
+ JSONObject json = new JSONObject(map);
|
|
|
+ RequestBody requestBody = RequestBody.create(JSON, String.valueOf(json));
|
|
|
+ OkHttpClient okHttpClient = new OkHttpClient();
|
|
|
+ Request request = new Request.Builder()
|
|
|
+ .url(PASUrl + "/api/v2/system/getConPantentNos")
|
|
|
+ .post(requestBody)
|
|
|
+ .build();
|
|
|
+ return Objects.requireNonNull(okHttpClient.newCall(request).execute().body()).string();
|
|
|
+ }
|
|
|
//根据专利号列表获得专利详情
|
|
|
public String getPatentDTOListForRMS(PatentVO patentVO) throws IOException{
|
|
|
Map<String, Object> map = new HashMap<>();
|