package com.cyksj.model.entity; import com.baomidou.mybatisplus.annotation.TableField; import com.ejlchina.searcher.bean.DbField; import com.ejlchina.searcher.bean.SearchBean; import lombok.Data; import java.util.Date; /** * @author chan * @date 2022/10/12 10:46 AM */ @Data @SearchBean(tables = "home_group h left join groups_relation gr on h.relation_id gr.id") public class HomeGroup extends BaseEntity{ @DbField("h.id") private Long homeGroupId; @DbField("gr.account_id") private Long accountId; @DbField("gr.relation_id") private Long relationId; @DbField("gr.user_id") @TableField(exist = false) private Long userId; /** * invited * uninvited */ @DbField("h.status") private String status; /** * 用户填写账号 */ @DbField("gr.account") @TableField(exist = false) private String account; @DbField("gr.start_time") @TableField(exist = false) private Date startTime; @TableField(exist = false) @DbField("gr.expiry_time") private Date expiryTime; }