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)
|
}
|