feiyu02
2025-09-30 a3cc1d220f8a1de11874bebceba0130d32157ff1
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
32
33
34
35
package cn.flightfeather.supervision.lightshare.service.impl
 
import cn.flightfeather.supervision.domain.ds1.entity.Taskvertion
import cn.flightfeather.supervision.domain.ds1.mapper.TaskvertionMapper
import cn.flightfeather.supervision.lightshare.service.TaskvertionService
import org.springframework.stereotype.Service
 
@Service
class TaskvertionServiceImpl(val taskvertionMapper: TaskvertionMapper) : TaskvertionService {
    //批量保存任务版本
    override fun saveList(taskvertionlist: List<Taskvertion>): Int {
        //循环添加
        taskvertionlist.forEach {
            taskvertionMapper.insert(it)
        }
        return taskvertionlist.size
    }
 
    override fun find(taskvertion: Taskvertion): List<Taskvertion> {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }
 
    override fun findByID(id: String): Taskvertion {
 
        return taskvertionMapper.selectByPrimaryKey(id)
    }
 
    override fun findAll(): MutableList<Taskvertion> = taskvertionMapper.selectAll()
 
    override fun save(taskvertion: Taskvertion): Int = taskvertionMapper.insert(taskvertion)
 
    override fun update(taskvertion: Taskvertion): Int = taskvertionMapper.updateByPrimaryKey(taskvertion)
 
    override fun delete(id: String): Int = taskvertionMapper.deleteByPrimaryKey(id)
}