添加字段和表
parent
c328b3bcae
commit
6133dbaf3b
|
@ -1,5 +1,6 @@
|
|||
package com.muyu.task.server.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.domian.TaskInfo;
|
||||
|
@ -14,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
@ -91,7 +93,15 @@ public class TaskInfoController {
|
|||
return Result.success(null,"操作成功");
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/updateByJson/{id}/{json}")
|
||||
@Operation(summary = "修改任务Json", description = "修改任务Json")
|
||||
public Result updateByJson(@PathVariable("id") Long id ,@PathVariable("json") Long json) {
|
||||
UpdateWrapper<TaskInfo> wrapper = new UpdateWrapper<>();
|
||||
wrapper.eq("id",id);
|
||||
wrapper.set("json",json);
|
||||
taskInfoService.update(wrapper);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue