“zhifk” 2 жил өмнө
parent
commit
e8ffe4e2bd

+ 3 - 0
blade-service-api/blade-business-api/src/main/java/org/springblade/business/feign/ArchiveFileClient.java

@@ -115,4 +115,7 @@ public interface ArchiveFileClient {
 
     @PostMapping(API_PREFIX + "/updateArchiveFileByBoxNameOne")
     boolean updateArchiveFileByBoxNameOne(@RequestParam String boxName, @RequestParam Integer boxNumber);
+
+    @PostMapping(API_PREFIX + "/updateRectificationById")
+    boolean updateRectificationById(@RequestParam Long id,@RequestParam Integer rectification);
 }

+ 11 - 0
blade-service/blade-business/src/main/java/org/springblade/business/feignClient/ArchiveFileClientImpl.java

@@ -240,5 +240,16 @@ public class ArchiveFileClientImpl implements ArchiveFileClient {
         return this.iArchiveFileService.updateArchiveFileByBoxNameOne(boxName, boxNumber);
     }
 
+    @Override
+    public boolean updateRectificationById(Long id,Integer rectification) {
+        try {
+            fileMapper.updateRectificationById(id,rectification);
+        } catch (Exception e) {
+            e.printStackTrace();
+            return false;
+        }
+        return true;
+    }
+
 
 }

+ 2 - 0
blade-service/blade-business/src/main/java/org/springblade/business/mapper/ArchiveFileMapper.java

@@ -86,4 +86,6 @@ public interface ArchiveFileMapper extends BaseMapper<ArchiveFile> {
 
     //后续应该加入文件类型
     List<ArchiveFile> getAllPdfFileUrlByProjectIdAndFileType(@Param("projectId") Long projectId);
+
+    void updateRectificationById(@Param("id") Long id,@Param("rectification") Integer rectification);
 }

+ 5 - 0
blade-service/blade-business/src/main/java/org/springblade/business/mapper/ArchiveFileMapper.xml

@@ -376,4 +376,9 @@
         WHERE project_id = #{projectId}
     </select>
 
+    <update id="updateRectificationById">
+        update u_archive_file set rectification = #{rectification} where
+        id = #{id}
+    </update>
+
 </mapper>