package com.cpp.web.domain.regulation;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Digits;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 短期调控常用
 *
 * @author tl
 * @date 2024-09-23 15:28:33
 */
@Data
@TableName("cpp_temp_short_usual_detail")
@ApiModel(value = "cpp_temp_short_usual_detail")
public class TempShortUsualDetail {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Long id;
    /**
     * 常用名称主键Id
     */
    private Long usualId;
    /**
     * 时间点位
     */
    @ApiModelProperty(value = "时间点位")
    private String timePoint;
    /**
     * 数值
     */
    @ApiModelProperty(value = "数值")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal sz = new BigDecimal(-99);
    /**
     * 系数
     */
    @ApiModelProperty(value = "系数")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal xs = new BigDecimal(-99);

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time" , fill = FieldFill.INSERT)
    private Date createTime = new Date();
    /** 创建者 */
    @TableField(value = "create_by" , fill = FieldFill.INSERT)
    private String createBy;
}
