|
@ -2,6 +2,7 @@ package com.iflytop.nuclear.controller; |
|
|
|
|
|
|
|
|
import com.alibaba.fastjson2.JSONObject; |
|
|
import com.alibaba.fastjson2.JSONObject; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
|
|
import com.iflytop.nuclear.model.Account; |
|
|
import com.iflytop.nuclear.model.Account; |
|
|
import com.iflytop.nuclear.model.NuclearCoreConfig; |
|
|
import com.iflytop.nuclear.model.NuclearCoreConfig; |
|
|
import com.iflytop.nuclear.model.Task; |
|
|
import com.iflytop.nuclear.model.Task; |
|
@ -19,6 +20,7 @@ import org.springframework.web.bind.annotation.*; |
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
import java.util.Date; |
|
|
import java.util.Date; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @author cool |
|
|
* @author cool |
|
@ -85,4 +87,16 @@ public class TaskController { |
|
|
return ResponseData.success(jo); |
|
|
return ResponseData.success(jo); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/update/{id}") |
|
|
|
|
|
public ResponseData updateOperInfo(@PathVariable(name = "id") int taskId, @RequestBody Map<String,String> taskInfo) { |
|
|
|
|
|
UpdateWrapper<Task> taskUpdateWrapper = new UpdateWrapper<>(); |
|
|
|
|
|
taskUpdateWrapper.eq("id",taskId); |
|
|
|
|
|
Task task = new Task(); |
|
|
|
|
|
task.setOperatorId(taskInfo.get("operatorId")); |
|
|
|
|
|
boolean update = taskService.update(task, taskUpdateWrapper); |
|
|
|
|
|
JSONObject jo = new JSONObject(); |
|
|
|
|
|
jo.put("result", update); |
|
|
|
|
|
return ResponseData.success(jo); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |