瀏覽代碼

422 保存无效证据

lwhhszx 1 年之前
父節點
當前提交
a8365e7bc2

+ 1 - 0
src/main/java/cn/cslg/pas/service/business/ImportTaskService.java

@@ -204,6 +204,7 @@ public class ImportTaskService extends ServiceImpl<ImportTaskMapper, ImportTask>
                 //删除临时文件tempFile
                 new File(tempFile.getPath()).delete();
             } catch (Exception e) {
+                e.printStackTrace();
                 throw new XiaoShiException("文件错误");
             }
         } else if (importTaskCondition.getType().equals(4)) {

+ 21 - 1
src/main/java/cn/cslg/pas/service/importPatent/GetPatentFromExcelThread.java

@@ -311,7 +311,27 @@ public class GetPatentFromExcelThread extends Thread {
             patent.setCpc(patentClassifies);
         }
 
-
+        //装载说明书
+        if ( uploadParamsVO.getPatentInstructionText()!=null) {
+            List<Text> texts = new ArrayList<>();
+            if (uploadParamsVO.getPatentInstructionText().getManual() != null) {
+                Text text = new Text();
+                text.setTextContent(uploadParamsVO.getPatentInstructionText().getManual());
+                text.setIfOrigin(true);
+                text.setLanguage(contry);
+                texts.add(text);
+            }
+            if (uploadParamsVO.getPatentInstructionText().getManualOut() != null) {
+                Text text = new Text();
+                text.setTextContent(uploadParamsVO.getPatentInstructionText().getManualOut());
+                text.setIfOrigin(false);
+                text.setLanguage("CN");
+                texts.add(text);
+            }
+            if (texts.size() != 0) {
+                patent.setPublicFullText(texts);
+            }
+        }
 
     }
 

File diff suppressed because it is too large
+ 1381 - 1264
src/main/resources/jsons/uploadSetting.json