新增责任人索引搜索

dev^2
chengyufei 1 year ago
parent 3579a1aa63
commit b210222210
  1. 4
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java

@ -184,6 +184,10 @@ public class TaskController extends JeecgController<Task, ITaskService> {
@ApiOperation(value = "任务管理-编辑", notes = "任务管理-编辑")
@PutMapping(value = "/edit")
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);
return Result.OK("编辑成功!");
}

Loading…
Cancel
Save