文件上传更改

This commit is contained in:
XaoLi717 2024-09-03 08:39:02 +08:00
parent b1a321a3e2
commit 13fd914224
2 changed files with 3 additions and 5 deletions

View File

@ -53,7 +53,6 @@ public class KnowledgeController {
@Operation(summary = "创建知识发布")
@PreAuthorize("@ss.hasPermission('bpm:knowledge:create')")
public CommonResult<Long> createKnowledge(@Valid @RequestBody KnowledgeSaveReqVO createReqVO) {
System.out.println("createReqVO"+createReqVO);
// return success(knowledgeService.createKnowledge(createReqVO));
return success(knowledgeService.createKnowledge(getLoginUserId(),createReqVO));
}
@ -62,7 +61,6 @@ public class KnowledgeController {
@Operation(summary = "更新知识发布")
@PreAuthorize("@ss.hasPermission('bpm:knowledge:update')")
public CommonResult<Boolean> updateKnowledge(@Valid @RequestBody KnowledgeSaveReqVO updateReqVO) {
System.out.println("updateReqVO"+updateReqVO);
knowledgeService.updateKnowledge(updateReqVO);
return success(true);
}

View File

@ -72,11 +72,11 @@ public class FileServiceImpl implements FileService {
// jsonObject.put("name",name);
// jsonObject.put("url",url);
String[] liss = new String[2];
System.out.println(name);
System.out.println(url);
// System.out.println(name);
// System.out.println(url);
liss[0] = name;
liss[1] = url;
System.out.println(Arrays.toString(liss));
// System.out.println(Arrays.toString(liss));
return liss;
}