添加字段和表

master
Cui YongXing 2024-08-28 18:46:49 +08:00
parent 0651ed80e8
commit c54f3add99
1 changed files with 2 additions and 2 deletions

View File

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