kongdeqiang
2023-02-17 ac94b1d939373a684344764e5b00dac44feabd81
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.wgcloud.service;
 
import com.wgcloud.entity.FailureLogging;
import com.wgcloud.entity.TaskInfo;
import com.wgcloud.mapper.TaskInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * @author kdq
 * @version 1.0.0
 * @ClassName TaskInfoService.java
 * @Description TODO
 * @createTime 2022年12月16日 15:50:00
 */
@Service
public class TaskInfoService {
 
    @Autowired
    private TaskInfoMapper taskInfoMapper;
 
    public void save(TaskInfo taskInfo) throws Exception {
        taskInfoMapper.save(taskInfo);
    }
 
    public void saveAll(List<TaskInfo> taskInfos) throws Exception {
        taskInfoMapper.insertList(taskInfos);
    }
}