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.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 行情源分组表
 * </p>
 *
 * @author XKF
 * @since 2025-08-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("QUOTESOURCEGROUP")
@ApiModel(value="Quotesourcegroup对象", description="行情源分组表")
@KeySequence(value = "SEQ_QUOTESOURCEGROUP")
public class Quotesourcegroup extends Model<Quotesourcegroup> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "AutoID - SEQ_QUOTESOURCEGROUP")
    @TableId(value = "AUTOID", type = IdType.INPUT)
    private Long autoid;

    @ApiModelProperty(value = "代码")
    @TableField("GROUPCODE")
    private String groupcode;

    @ApiModelProperty(value = "名称")
    @TableField("GROUPNAME")
    private String groupname;

    @ApiModelProperty(value = "夏令时")
    @TableField("SUMMERTIMEGROUPID")
    private Long summertimegroupid;

    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    @TableField(select = false)
    private String summerGroupName;

    @TableField(select = false)
    @ApiModelProperty(value = "新增1 修改2")
    private Integer flag;

    @TableField(select = false)
    private Map<Integer, List<Quotesourcegrouprunstep>> group;
    @Override
    public Serializable pkVal() {
        return this.autoid;
    }

}
