Skip to content

kotlin 怎么实现多表联查呀,有没有demo,如下面两个表,我根据accid查数据时,以用户表为主表,好友关系表如果有这个id 的数据就组合数据。类似leftJoin 怎么用啊,没看到有 demo #1521

@xfx761

Description

@xfx761

`@WCDBTableCoding
class UserEntity {
@WCDBField(isPrimary = true)
var accid: String? = null
@WCDBField
var name: String? = null
@WCDBField
var avatarUrl: String? = null
}

@WCDBTableCoding
class FriendRelationEntity {
@WCDBField(isPrimary = true)
var id: Long = 0
@WCDBField
var accid: String? = null
@WCDBField
var alias: String? = null
}
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions