feiyu02
2025-09-19 7cbe1610b87da19ed8a146a09b1117f92d9d3d98
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package cn.flightfeather.supervision.lightshare.service.impl
 
import cn.flightfeather.supervision.domain.ds1.entity.Province
import cn.flightfeather.supervision.domain.ds1.mapper.ProvinceMapper
import cn.flightfeather.supervision.lightshare.service.ProvinceService
import org.springframework.stereotype.Service
 
@Service
class ProvinceServiceImpl(val provinceMapper: ProvinceMapper) : ProvinceService {
    override fun findOne(id: String): Province = provinceMapper.selectByPrimaryKey(id)
 
    override fun findAll(): MutableList<Province> = provinceMapper.selectAll()
 
    override fun save(province: Province): Int = provinceMapper.insert(province)
 
    override fun update(province: Province): Int = provinceMapper.updateByPrimaryKey(province)
 
    override fun delete(id: String): Int = provinceMapper.deleteByPrimaryKey(id)
}