Browse Source

完善拆分权要代码,若拆分过程中出错,则返回整条原文权要

chendayu 2 years ago
parent
commit
d6271ecd56

+ 3 - 1
RMS/src/main/java/cn/cslg/report/common/utils/PatentRightUtils.java

@@ -316,7 +316,9 @@ public class PatentRightUtils {
             return patentRights;
         } catch (Exception e) {
             e.printStackTrace();
-            return new ArrayList<>();
+            ArrayList<PatentRight> patentRights = new ArrayList<>();
+            patentRights.add(new PatentRight().setPatentId(params.getPatentId()).setContent(params.getContent()).setContentOut(params.getContentOut()).setType(1).setSort(0).setParentSort("-1"));
+            return patentRights;
         }
     }