package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 子机构分组表
 * </p>
 *
 * @author XKF
 * @since 2024-08-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SUBAREAGROUP")
@ApiModel(value="Subareagroup对象", description="子机构分组表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
@KeySequence(value = "SEQ_SUBAREAGROUP")
public class Subareagroup extends Model<Subareagroup> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "子机构分组ID(SEQ_SUBAREAGROUP)")
    @TableId(value = "SUBAREAGROUPID", type = IdType.INPUT)
    private Long subareagroupid;

    @ApiModelProperty(value = "子机构分组类型 - 1:子机构分润分组")
    @TableField("SUBAREAGROUPTYPE")
    private Integer subareagrouptype;

    @ApiModelProperty(value = "子机构分组名称")
    @TableField("SUBAREAGROUPNAME")
    private String subareagroupname;

    @ApiModelProperty(value = "子机构分组备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATORID")
    private Long creatorid;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATETIME")
    private Date createtime;

    @ApiModelProperty(value = "所属机构")
    @TableField("AREAUSERID")
    private Long areauserid;


    @Override
    public Serializable pkVal() {
        return this.subareagroupid;
    }

}
