添加字段和表

master
Cui YongXing 2024-08-28 18:22:37 +08:00
parent f08432fb39
commit 9fe6ed3027
1 changed files with 2 additions and 2 deletions

View File

@ -93,9 +93,9 @@ public class TaskInfoController {
return Result.success(null,"操作成功"); return Result.success(null,"操作成功");
} }
@PostMapping("/updateByJson/{id}/{json}") @PostMapping("/updateByJson")
@Operation(summary = "修改任务Json", description = "修改任务Json") @Operation(summary = "修改任务Json", description = "修改任务Json")
public Result updateByJson(@PathVariable("id") Long id ,@PathVariable("json") String json) { public Result updateByJson(@RequestParam Long id ,@RequestParam("json") String json) {
UpdateWrapper<TaskInfo> wrapper = new UpdateWrapper<>(); UpdateWrapper<TaskInfo> wrapper = new UpdateWrapper<>();
wrapper.eq("id",id); wrapper.eq("id",id);
wrapper.set("json",json); wrapper.set("json",json);