From 3e9ea659ab76fa036390c49ca63e6f64fc451598 Mon Sep 17 00:00:00 2001 From: whycrzg <ruanzhigang@whycst.com> Date: 星期四, 01 四月 2021 11:46:17 +0800 Subject: [PATCH] 修改 项目管理更新 --- src/main/java/com/whyc/controller/ProjectManageController.java | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/whyc/controller/ProjectManageController.java b/src/main/java/com/whyc/controller/ProjectManageController.java index 0c81067..9b8e63c 100644 --- a/src/main/java/com/whyc/controller/ProjectManageController.java +++ b/src/main/java/com/whyc/controller/ProjectManageController.java @@ -105,7 +105,7 @@ // 淇濆瓨鍒版湇鍔″櫒涓� file.transferTo(dest); map.put("fileType", file.getContentType()); - map.put("fileName", originalFilename); + map.put("name", originalFilename); Double size = file.getSize() * 0.01 / 1024 / 1024 * 100; String douStr = String.format("%.2f", size); map.put("fileSize", douStr+" M"); @@ -227,15 +227,8 @@ */ @PutMapping("updateManageState") @ApiOperation(notes = "椤圭洰杩涘害纭1-6 瀵瑰簲 绔嬮」-瀹℃壒-鐮旂┒-缁撻-楠屾敹-褰掓。",value = "椤圭洰杩囩▼绠$悊-鏈‘璁ら樁娈垫洿鏂�") - public Response updateManageState(@ApiParam(value = "椤圭洰缂栧彿", required = true) @RequestParam String proNum, - @ApiParam(value = "椤圭洰鍚嶇О浠g爜", required = true) @RequestParam String proNameCode, - @ApiParam(value = "椤圭洰杩涘害纭1-6",required = true)@RequestParam int proProgress, - @ApiParam(value = "鏂囨。涓婁紶淇濆瓨鍦板潃(濡傛灉鏃犱紶绌哄瓧绗︿覆)",required = true)@RequestParam String proFilePath) { - ProjectManage projectManage = new ProjectManage(); - projectManage.setProNum(proNum); - projectManage.setProNameCode(proNameCode); - projectManage.setProProgress(proProgress); - projectManage.setNote(proFilePath); + public Response updateManageState(@RequestBody ProjectManage projectManage) { + return service.updateManageState(projectManage); } -- Gitblit v1.9.1