From 6e1095e946997e406926c204ceeb5c820dbd07c1 Mon Sep 17 00:00:00 2001 From: Riku <risaku@163.com> Date: 星期二, 13 八月 2024 23:51:47 +0800 Subject: [PATCH] 1. 修复文件扩展名获取错误问题 2. 调试完善设备信息相关接口 --- src/main/kotlin/cn/flightfeather/supervision/domain/ds1/repository/UserInfoSVRep.kt | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/domain/ds1/repository/UserInfoSVRep.kt b/src/main/kotlin/cn/flightfeather/supervision/domain/ds1/repository/UserInfoSVRep.kt index a3ea0a8..fba609a 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/domain/ds1/repository/UserInfoSVRep.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/domain/ds1/repository/UserInfoSVRep.kt @@ -15,7 +15,7 @@ ) { /** - * 鏌ユ壘鍦烘櫙 + * 鏌ユ壘鐢ㄦ埛 */ fun findUser(sceneIdList: List<String?>): List<Userinfo?> { return userinfoMapper.selectByExample(Example(Userinfo::class.java).apply { @@ -23,9 +23,11 @@ }) } - fun findUser(sceneId: String): List<Userinfo?> { - return userinfoMapper.selectByExample(Example(Userinfo::class.java).apply { - createCriteria().andEqualTo("dGuid", sceneId) - }) + fun findUser(sceneId: String?): Userinfo? { + return try { + userinfoMapper.selectOne(Userinfo().apply { dGuid = sceneId }) + } catch (e: Exception) { + null + } } } \ No newline at end of file -- Gitblit v1.9.3