From ebeecf61232967a9c21ca4aa63ccec8e269b8c0e Mon Sep 17 00:00:00 2001 From: fei <791364011@qq.com> Date: 星期一, 29 九月 2025 09:13:58 +0800 Subject: [PATCH] Merge branch 'master' of http://47.93.189.255:8099/r/archiveSystem --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/DocumentMaterialsController.java | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/DocumentMaterialsController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/DocumentMaterialsController.java index 1efe789..23498b4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/DocumentMaterialsController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/DocumentMaterialsController.java @@ -41,7 +41,7 @@ import static com.ruoyi.common.core.page.TableSupport.PAGE_SIZE; /** - * 銆愯濉啓鍔熻兘鍚嶇О銆慍ontroller + * 銆愭枃浠舵潗鏂欑患鍚堜俊鎭�慍ontroller * * @author ruoyi * @date 2025-07-28 @@ -57,7 +57,7 @@ private IDocumentMaterialsService documentMaterialsService; /** - * 鏌ヨ銆愯濉啓鍔熻兘鍚嶇О銆戝垪琛� + * 鏌ヨ銆愭枃浠舵潗鏂欑患鍚堜俊鎭�戝垪琛� */ @PreAuthorize("@ss.hasPermi('system:materials:list')") @GetMapping("/list") @@ -70,20 +70,20 @@ } /** - * 瀵煎嚭銆愯濉啓鍔熻兘鍚嶇О銆戝垪琛� + * 瀵煎嚭銆愭枃浠舵潗鏂欑患鍚堜俊鎭�戝垪琛� */ @PreAuthorize("@ss.hasPermi('system:materials:export')") - @Log(title = "銆愯濉啓鍔熻兘鍚嶇О銆�", businessType = BusinessType.EXPORT) + @Log(title = "銆愭枃浠舵潗鏂欑患鍚堜俊鎭��", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, DocumentMaterials documentMaterials) { List<DocumentMaterials> list = documentMaterialsService.selectDocumentMaterialsList(documentMaterials); ExcelUtil<DocumentMaterials> util = new ExcelUtil<DocumentMaterials>(DocumentMaterials.class); - util.exportExcel(response, list, "銆愯濉啓鍔熻兘鍚嶇О銆戞暟鎹�"); + util.exportExcel(response, list, "銆愭枃浠舵潗鏂欑患鍚堜俊鎭�戞暟鎹�"); } /** - * 鑾峰彇銆愯濉啓鍔熻兘鍚嶇О銆戣缁嗕俊鎭� + * 鑾峰彇銆愭枃浠舵潗鏂欑患鍚堜俊鎭�戣缁嗕俊鎭� */ @PreAuthorize("@ss.hasPermi('system:materials:query')") @GetMapping(value = "/{materialId}") @@ -93,10 +93,10 @@ } /** - * 鏂板銆愯濉啓鍔熻兘鍚嶇О銆� + * 鏂板銆愭枃浠舵潗鏂欑患鍚堜俊鎭�� */ @PreAuthorize("@ss.hasPermi('system:materials:add')") - @Log(title = "銆愯濉啓鍔熻兘鍚嶇О銆�", businessType = BusinessType.INSERT) + @Log(title = "銆愭枃浠舵潗鏂欑患鍚堜俊鎭��", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody DocumentMaterials documentMaterials) { @@ -106,12 +106,12 @@ } /** - * 淇敼銆愯濉啓鍔熻兘鍚嶇О銆� + * 淇敼銆愭枃浠舵潗鏂欑患鍚堜俊鎭�� * * system:materials:edit */ @PreAuthorize("@ss.hasPermi('system:materials:edit')") - @Log(title = "銆愯濉啓鍔熻兘鍚嶇О銆�", businessType = BusinessType.UPDATE) + @Log(title = "銆愭枃浠舵潗鏂欑患鍚堜俊鎭��", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody DocumentMaterials documentMaterials) { @@ -119,10 +119,10 @@ } /** - * 鍒犻櫎銆愯濉啓鍔熻兘鍚嶇О銆� + * 鍒犻櫎銆愭枃浠舵潗鏂欑患鍚堜俊鎭�� */ @PreAuthorize("@ss.hasPermi('system:materials:remove')") - @Log(title = "銆愯濉啓鍔熻兘鍚嶇О銆�", businessType = BusinessType.DELETE) + @Log(title = "銆愭枃浠舵潗鏂欑患鍚堜俊鎭��", businessType = BusinessType.DELETE) @DeleteMapping("/{materialIds}") public AjaxResult remove(@PathVariable String[] materialIds) { @@ -144,7 +144,7 @@ } @PostMapping("/upload") - public AjaxResult uploadFile(MultipartFile file) throws Exception + public AjaxResult uploadFile(MultipartFile file, Long recordId) throws Exception { // System.out.println("sdfd9999999999999999999999999999999"); try @@ -185,7 +185,7 @@ //璁$畻sizeType String sizeType = getPageSize(wid*hei); //鎻掑叆鏁版嵁搴撳搴旂殑url褰撲腑 - documentMaterialsService.updateByPageNumber(nam, sizeType, fileNumber,wid, hei,wdpi, hdpi, sz, fileName, pname); + documentMaterialsService.updateByPageNumber(nam, sizeType, fileNumber,wid, hei,wdpi, hdpi, sz, fileName, pname, recordId); // System.out.println(url); // System.out.println(fileName); ajax.put("fileName", fileName); -- Gitblit v1.9.1