TaskServiceImpl.java 456 Bytes
package vion.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import vion.mapper.TaskMapper;
import vion.model.Task;
import vion.service.ITaskSerrvice;

@Service
public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements ITaskSerrvice {
    @Override
    public Task saveAndReturn(Task task) {
        this.saveOrUpdate(task);
        return task;
    }
}