package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
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.*;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 交易规则说明表
 * </p>
 *
 * @author XKF
 * @since 2024-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("TRADERULEDESCRIPTION")
@ApiModel(value="Traderuledescription对象", description="交易规则说明表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Traderuledescription extends Model<Traderuledescription> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "交易规则 - 101 最大买持仓量  102 最大卖持仓量 103 单笔最小建仓量 104 单笔最大建仓量 105 手续费收费规则 106 交易T+N 107 上市首日涨停 108 上市首日跌停 109 上市首日参考价 110 涨停 111 跌停 112 市价最大偏移范围 113 止损点差 114 止盈点差 115 单笔最小交割数量 116 单笔最大交割数量 ")
    @TableId(value = "RULEID")
    private Integer ruleid;

    @ApiModelProperty(value = "规则名称")
    @TableField("RULENAME")
    private String rulename;

    @ApiModelProperty(value = "正则表达式")
    @TableField("REGEXPRESS")
    private String regexpress;

    @ApiModelProperty(value = "默认值")
    @TableField("DEFAULTVALUE")
    private BigDecimal defaultvalue;

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


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

}
