package com.battery.business.domain;
|
|
import java.util.Date;
|
import java.util.List;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotEmpty;
|
import jakarta.validation.constraints.Size;
|
import com.ruoyi.common.core.domain.BaseEntity;
|
|
/** 电池组主档对象,对应表 t_battery_group;电池号不能脱离所属电池组参与测试。 */
|
public class TBatteryGroup extends BaseEntity
|
{
|
private static final long serialVersionUID = 1L;
|
/** 电池组主键。 */
|
private Long groupId;
|
/** 电池组名称。 */
|
@NotBlank(message = "电池组名称不能为空") @Size(max = 100, message = "电池组名称长度不能超过100个字符")
|
private String groupName;
|
/** 电池组型号。 */
|
@NotBlank(message = "电池组型号不能为空") @Size(max = 100, message = "电池组型号长度不能超过100个字符")
|
private String model;
|
/** 电池组用途。 */
|
@Size(max = 500, message = "用途长度不能超过500个字符") private String purpose;
|
/** 化成报表公式用参数 Z。 */
|
@Size(max = 100, message = "z字段长度不能超过100个字符") private String z;
|
/** 化成报表公式用参数 H。 */
|
@Size(max = 100, message = "h字段长度不能超过100个字符") private String h;
|
/** 化成报表公式用参数 F,全部报表版本共用同一份定义。 */
|
@Size(max = 100, message = "f字段长度不能超过100个字符") private String f;
|
/** 化成报表公式用参数 A。 */
|
@Size(max = 100, message = "a字段长度不能超过100个字符") private String a;
|
/** 化成报表公式用参数 B。 */
|
@Size(max = 100, message = "b字段长度不能超过100个字符") private String b;
|
/** 启用状态:0正常,1停用;已被测试引用的电池组不能删除。 */
|
private String status;
|
/** 逻辑删除标识:0存在,其他值表示已删除。 */
|
private String delFlag;
|
/** 查询条件:创建时间起始值。 */
|
private Date beginCreateTime;
|
/** 查询条件:创建时间结束值。 */
|
private Date endCreateTime;
|
/** 本电池组的电池号列表;新增或编辑时整体替换。 */
|
@NotEmpty(message = "电池号不能为空") private List<String> batteryNos;
|
/** 所选字段模板主键。 */
|
private Long templateId;
|
/** 模板字段关系,落库为电池组自己的字段值。 */
|
private List<TBatteryGroupRelationField> templateFieldRelations;
|
/** 电池号关系列表,含排序号。 */
|
private List<TBatteryGroupBattery> batteries;
|
/** 查询结果:电池号数量,由查询汇总得出。 */
|
private Integer batteryCount;
|
/** 电池组字段值;templateFields 为现有页面兼容名称。 */
|
private List<TBatteryGroupRelationField> templateFields;
|
/** 电池组当前字段值;templateFields 为现有页面兼容名称。 */
|
private List<TBatteryGroupRelationField> fields;
|
|
public Long getGroupId() { return groupId; } public void setGroupId(Long v) { groupId = v; }
|
public String getGroupName() { return groupName; } public void setGroupName(String v) { groupName = v; }
|
public String getModel() { return model; } public void setModel(String v) { model = v; }
|
public String getPurpose() { return purpose; } public void setPurpose(String v) { purpose = v; }
|
public String getZ() { return z; } public void setZ(String v) { z = v; }
|
public String getH() { return h; } public void setH(String v) { h = v; }
|
public String getF() { return f; } public void setF(String v) { f = v; }
|
public String getA() { return a; } public void setA(String v) { a = v; }
|
public String getB() { return b; } public void setB(String v) { b = v; }
|
public String getStatus() { return status; } public void setStatus(String v) { status = v; }
|
public String getDelFlag() { return delFlag; } public void setDelFlag(String v) { delFlag = v; }
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") public Date getBeginCreateTime() { return beginCreateTime; }
|
public void setBeginCreateTime(Date v) { beginCreateTime = v; }
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") public Date getEndCreateTime() { return endCreateTime; }
|
public void setEndCreateTime(Date v) { endCreateTime = v; }
|
public List<String> getBatteryNos() { return batteryNos; } public void setBatteryNos(List<String> v) { batteryNos = v; }
|
public Long getTemplateId() { return templateId; } public void setTemplateId(Long v) { templateId = v; }
|
public List<TBatteryGroupRelationField> getTemplateFieldRelations() { return templateFieldRelations; } public void setTemplateFieldRelations(List<TBatteryGroupRelationField> v) { templateFieldRelations = v; }
|
public List<TBatteryGroupBattery> getBatteries() { return batteries; } public void setBatteries(List<TBatteryGroupBattery> v) { batteries = v; }
|
public Integer getBatteryCount() { return batteryCount; } public void setBatteryCount(Integer v) { batteryCount = v; }
|
public List<TBatteryGroupRelationField> getTemplateFields() { return templateFields; } public void setTemplateFields(List<TBatteryGroupRelationField> v) { templateFields = v; }
|
public List<TBatteryGroupRelationField> getFields() { return fields != null ? fields : templateFields; }
|
public void setFields(List<TBatteryGroupRelationField> v) { fields = v; templateFields = v; }
|
}
|