package com.flightfeather.obd.lightshare.service.impl
|
|
import com.flightfeather.obd.lightshare.bean.ThresholdValueVo
|
import com.flightfeather.obd.lightshare.service.ObdThresholdValueService
|
import com.flightfeather.obd.repository.ObdThresholdValueRepository
|
import org.springframework.stereotype.Service
|
|
/**
|
* @author riku
|
* Date: 2019/9/5
|
*/
|
@Service
|
class ObdThresholdValueServiceImpl(val obdThresholdValueRepository: ObdThresholdValueRepository) : ObdThresholdValueService {
|
|
override fun save(userId: String, thresholdValueVo: ThresholdValueVo): Boolean {
|
return obdThresholdValueRepository.save(userId, thresholdValueVo)
|
}
|
|
override fun update(userId: String, thresholdValueVo: ThresholdValueVo): Boolean {
|
return obdThresholdValueRepository.update(userId, thresholdValueVo)
|
}
|
|
override fun getDataByVinCode(vinCode: String): ThresholdValueVo? {
|
return obdThresholdValueRepository.getByVinCode(vinCode)
|
}
|
|
}
|