From 197d6766d056fda4fdf9e1f9ee26de9f9a480ef5 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 05 九月 2019 10:32:58 +0800 Subject: [PATCH] 完成警报、阈值的插入、更新、获取等接口 --- src/main/kotlin/com/flightfeather/obd/repository/impl/ObdDataDaoImpl.kt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/flightfeather/obd/repository/impl/ObdDataDaoImpl.kt b/src/main/kotlin/com/flightfeather/obd/repository/impl/ObdDataDaoImpl.kt index 7f58318..4b49491 100644 --- a/src/main/kotlin/com/flightfeather/obd/repository/impl/ObdDataDaoImpl.kt +++ b/src/main/kotlin/com/flightfeather/obd/repository/impl/ObdDataDaoImpl.kt @@ -17,10 +17,10 @@ @Repository class ObdDataDaoImpl(val obdDataMapper: ObdDataMapper) : ObdDataRepository { - override fun saveObdData(data: ObdDataVo) { + override fun saveObdData(data: ObdDataVo): Boolean { val obdData = ObdData() BeanUtils.copyProperties(data, obdData) - obdDataMapper.insert(obdData) + return obdDataMapper.insert(obdData) == 1 } override fun getDataByVinCode(vinCode: String, pageNum: Int?, pageSize: Int?): MutableList<ObdDataVo> { -- Gitblit v1.9.3