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