package com.xunmei.sync.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 机构业务关系表
 */

@Data
@TableName("t_fjnx_org_business_relation")
@ApiModel(value = "OrgBusinessRelation对象", description = "")
public class FjnxOrgBusinessRelation implements Serializable {


    @ApiModelProperty(value = "编码")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "机构id")
    @TableField("org_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orgId;

    @ApiModelProperty(value = "机构编码")
    @TableField("org_code")
    private String orgCode;

    @ApiModelProperty(value = "业务父级Id")
    @TableField("business_parent_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long businessParentId;

    @ApiModelProperty(value = "业务父级机构编码")
    @TableField("business_parent_code")
    private String businessParentCode;

    @ApiModelProperty(value = "机构层级")
    @TableField("org_level")
    private Integer orgLevel;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "最后修改人id")
    @TableField("modified_id")
    private Long modifiedId;

    @ApiModelProperty(value = "修改人名称")
    @TableField("modified_name")
    private String modifiedName;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Date updateTime;

}
