ソースを参照

同族导入修改

lwhhszx 2 年 前
コミット
da5713d78e

+ 2 - 1
PAS/src/main/java/cn/cslg/pas/controller/SystemController.java

@@ -20,6 +20,7 @@ import lombok.RequiredArgsConstructor;
 import org.springframework.context.annotation.Lazy;
 import org.springframework.web.bind.annotation.*;
 
+import java.text.ParseException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
@@ -85,7 +86,7 @@ public class SystemController {
 
     @PostMapping("/patentCellTODb")
     @Operation(summary = "专利上传到数据库")
-    public String   getPatentDTOListForRMS(@RequestBody PatentCell patentCell) {
+    public String   getPatentDTOListForRMS(@RequestBody PatentCell patentCell) throws ParseException {
         uploadPatentBatchService.dataToDBCell(patentCell);
         return Response.success();
 

+ 9 - 1
PAS/src/main/java/cn/cslg/pas/service/PatentInstructionService.java

@@ -159,7 +159,15 @@ public class PatentInstructionService extends ServiceImpl<PatentInstructionMappe
         patentInstruction.insert();
         return Response.success(true);
     }
-
+    @Transactional
+    public String edit(String patentNo, UploadFileDTO pdf) {
+      PatentInstruction patentInstruction =new PatentInstruction();
+        patentInstruction.setUrl(pdf.getPath());
+        patentInstruction.setFileName(pdf.getFileName());
+        patentInstruction.setSize(pdf.getFileSize());
+        patentInstruction.insert();
+        return Response.success(true);
+    }
     public String delete(Integer id) {
         PatentInstruction temp = this.getById(id);
         this.removeById(id);