| | |
| | | // 保存到服务器中 |
| | | 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"); |
| | |
| | | */ |
| | | @PutMapping("updateManageState") |
| | | @ApiOperation(notes = "项目进度确认1-6 对应 立项-审批-研究-结题-验收-归档",value = "项目过程管理-未确认阶段更新") |
| | | public Response updateManageState(@ApiParam(value = "项目编号", required = true) @RequestParam String proNum, |
| | | @ApiParam(value = "项目名称代码", 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); |
| | | } |
| | | |