gunshi-project-ss/src/main/java/com/gunshi/project/xyt/model/StStchB.java

144 lines
4.6 KiB
Java
Raw Normal View History

package com.gunshi.project.xyt.model;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* Description:
* Created by XuSan on 2024/1/30.
*
* @author XuSan
* @version 1.0
*/
/**
*
*/
@Data
@TableName("ST_STCH_B")
@Accessors(chain = true) // chain = true 实现链式调用
@JsonInclude(JsonInclude.Include.NON_NULL) // 表示序列化非null属性
@Schema(description = "站点采集项基础信息")
public class StStchB implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
@TableId(value = "ID", type = IdType.AUTO)
@Schema(description = "主键id")
@ExcelProperty("编号")
private Integer id;
/**
* x id
*/
@ExcelProperty("选择公式计算时x 的取值采集项 id")
@Schema(description = "选择公式计算时x 的取值采集项 id")
@TableField(value = "XID", updateStrategy = FieldStrategy.IGNORED)
private Integer xid;
/**
* c
*/
@ExcelProperty("公式参数c")
@Schema(description = "公式参数c")
@TableField(value = "C", updateStrategy = FieldStrategy.IGNORED)
private Double c;
/**
* b
*/
@ExcelProperty("公式参数b")
@Schema(description = "公式参数b")
@TableField(value = "B", updateStrategy = FieldStrategy.IGNORED)
private Double b;
/**
* a
*/
@ExcelProperty("公式参数a")
@Schema(description = "公式参数a")
@TableField(value = "A", updateStrategy = FieldStrategy.IGNORED)
private Double a;
/**
* 1, 52, 13, y = a * x + b , 4, y = a * x² + b * x + c
*/
@ExcelProperty("计算公式 1, 5分钟时段值2, 1小时时段3, 一元一次方程 y = a * x + b , 4, 一元二次方程 y = a * x² + b * x + c")
@Schema(description = "计算公式 1, 5分钟时段值2, 1小时时段3, 一元一次方程 y = a * x + b , 4, 一元二次方程 y = a * x² + b * x + c")
@TableField(value = "FORMULA", updateStrategy = FieldStrategy.IGNORED)
private Integer formula;
/**
* 0 1 2 y = a * x + b
*/
@ExcelProperty("是否计算量0 否1 是例如一元二次方程计算流量2 修正(例如水位加高程。例如 y = a * x + b")
@Schema(description = "是否计算量0 否1 是例如一元二次方程计算流量2 修正(例如水位加高程。例如 y = a * x + b")
@TableField("CALC")
private Integer calc;
/**
*
*/
@ExcelProperty("是否默认采集项")
@Schema(description = "是否默认采集项")
@TableField("DEF")
private Integer def;
/**
* 0/1/2/3/4/5/6
*/
@ExcelProperty("采集项编号0/1/2/3/4/5/6等")
@Schema(description = "采集项编号0/1/2/3/4/5/6等")
@TableField("CHID")
@NotNull(message = "采集项编号不能为空")
@Size(max = 50,message = "采集项编号长度不能超过50")
private String chid;
/**
* DRP/Z/Q/VT/W
*/
@ExcelProperty("采集项编码DRP/Z/Q/VT/W等")
@Schema(description = "采集项编码DRP/Z/Q/VT/W等")
@TableField("CHCD")
@NotNull(message = "采集项编码不能为空")
@Size(max = 50,message = "采集项编码长度不能超过50")
private String chcd;
/**
*
*/
@ExcelProperty("采集项名称")
@Schema(description = "采集项名称")
@TableField("CHNM")
@Size(max = 50,message = "采集项名称长度不能超过50")
private String chnm;
/**
*
*/
@ExcelProperty("测站编码")
@Schema(description = "测站编码")
@TableField("STCD")
@NotNull(message = "测站编码不能为空")
@Size(max = 50,message = "采集项编码长度不能超过50")
private String stcd;
/**
* 0:, 1:
*/
@TableField(value = "DEL")
@Schema(description = "删除标记 0:未删除, 1: 删除")
private Integer del;
}