|
|
@ -184,6 +184,10 @@ public class TaskController extends JeecgController<Task, ITaskService> { |
|
|
|
@ApiOperation(value = "任务管理-编辑", notes = "任务管理-编辑") |
|
|
|
@ApiOperation(value = "任务管理-编辑", notes = "任务管理-编辑") |
|
|
|
@PutMapping(value = "/edit") |
|
|
|
@PutMapping(value = "/edit") |
|
|
|
public Result<?> edit(@RequestBody Task task) { |
|
|
|
public Result<?> edit(@RequestBody Task task) { |
|
|
|
|
|
|
|
String taskDescribe = task.getTaskDescribe(); |
|
|
|
|
|
|
|
boolean st = taskDescribe.contains("data:image/png;base64"); |
|
|
|
|
|
|
|
if (st) |
|
|
|
|
|
|
|
return Result.error("不能直接将图片放入任务描述中,因为图片将会进行base64转码,数据库中text字段不一定存下"); |
|
|
|
taskService.updateById(task); |
|
|
|
taskService.updateById(task); |
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
} |
|
|
|
} |
|
|
|