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