package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
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;

/**
 * <p>
 * 行情源分组开休市计划明细
SectionId = 0时，开始时间=清盘时间  开始周几= 清盘周几， 结束时间=结算时间 结束周几=结算周几
 * </p>
 *
 * @author XKF
 * @since 2025-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("QUOTESOURCEGROUPRUNSTEP")
@ApiModel(value="Quotesourcegrouprunstep对象", description="行情源分组开休市计划明细 SectionId = 0时，开始时间=清盘时间  开始周几= 清盘周几， 结束时间=结算时间 结束周几=结算周几")
public class Quotesourcegrouprunstep extends Model<Quotesourcegrouprunstep> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分组ID")
    private Long groupid;

    @ApiModelProperty(value = "交易日归属 - 0:星期天、1:星期一、2:星期二、3:星期三、4:星期四、5:星期五、6:星期六")
    @TableField("TRADEWEEKDAY")
    private Integer tradeweekday;

    @ApiModelProperty(value = "从 1 开始 往下编 [0为系统清盘、结算时间]")
    @TableField("SECTIONID")
    private Integer sectionid;

    @ApiModelProperty(value = "运行阶段 - 2:连续交易")
    @TableField("RUNSTEP")
    private Integer runstep;

    @ApiModelProperty(value = "起始周几")
    @TableField("STARTWEEKDAY")
    private Integer startweekday;

    @ApiModelProperty(value = "起始时间(HH:mm)")
    @TableField("STARTTIME")
    private String starttime;

    @ApiModelProperty(value = "结束周几")
    @TableField("ENDWEEKDAY")
    private Integer endweekday;

    @ApiModelProperty(value = "结束时间(HH:mm)")
    @TableField("ENDTIME")
    private String endtime;

    @ApiModelProperty(value = "开始日标识 - (-1:上日 0:当日 1:次日 )")
    @TableField("STARTFLAG")
    private Integer startflag;

    @ApiModelProperty(value = "结束日标识 - (-1:上日 0:当日 1:次日 )")
    @TableField("ENDFLAG")
    private Integer endflag;


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

}
