| | |
| | | ) { |
| | | |
| | | /** |
| | | * 查找场景 |
| | | * 查找用户 |
| | | */ |
| | | fun findUser(sceneIdList: List<String?>): List<Userinfo?> { |
| | | if (sceneIdList.isEmpty()) return emptyList() |
| | | return userinfoMapper.selectByExample(Example(Userinfo::class.java).apply { |
| | | createCriteria().andIn("dGuid", sceneIdList) |
| | | }) |
| | | } |
| | | |
| | | 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 |
| | | } |
| | | } |
| | | } |