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

144 lines
4.6 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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, 5分钟时段值2, 1小时时段3, 一元一次方程 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;
}