Files
auto-solution/auto-solution-behaviour/src/main/java/com/solution/system/domain/Templateparameterdef.java
yhang cd18e2a71d style(excel): 优化Excel注解中的字符串格式
- 移除Nodetemplate类中节点类型的双引号显示
- 移除Templateparameterdef类中数据类型的双引号显示
- 统一Excel导出时的字符串格式规范
2026-02-05 17:21:54 +08:00

128 lines
3.0 KiB
Java

package com.solution.system.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.solution.common.annotation.Excel;
import com.solution.common.core.domain.BaseEntity;
/**
* 模板参数定义对象 templateparameterdef
*
* @author ruoyi
* @date 2026-02-05
*/
public class Templateparameterdef extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 参数定义ID (主键) */
private Long id;
/** 关联到哪个节点模板 (外键: NodeTemplate.id) */
@Excel(name = "关联到哪个节点模板 (外键: NodeTemplate.id)")
private Long templateId;
/** 参数键名, 例如: "target_name", "speed" */
@Excel(name = "参数键名, 例如: target_name, speed")
private String paramKey;
/** 参数数据类型, 例如: "float", "int", "string", "bool" */
@Excel(name = "参数数据类型, 例如: float, int, string, bool")
private String dataType;
/** 默认值 */
@Excel(name = "默认值")
private String defaultValue;
/** 参数描述 */
@Excel(name = "参数描述")
private String description;
/** 判断参数模版是节点的参数模版还是条件的参数模版 */
@Excel(name = "判断参数模版是节点的参数模版还是条件的参数模版")
private String templateType;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTemplateId(Long templateId)
{
this.templateId = templateId;
}
public Long getTemplateId()
{
return templateId;
}
public void setParamKey(String paramKey)
{
this.paramKey = paramKey;
}
public String getParamKey()
{
return paramKey;
}
public void setDataType(String dataType)
{
this.dataType = dataType;
}
public String getDataType()
{
return dataType;
}
public void setDefaultValue(String defaultValue)
{
this.defaultValue = defaultValue;
}
public String getDefaultValue()
{
return defaultValue;
}
public void setDescription(String description)
{
this.description = description;
}
public String getDescription()
{
return description;
}
public void setTemplateType(String templateType)
{
this.templateType = templateType;
}
public String getTemplateType()
{
return templateType;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("templateId", getTemplateId())
.append("paramKey", getParamKey())
.append("dataType", getDataType())
.append("defaultValue", getDefaultValue())
.append("description", getDescription())
.append("templateType", getTemplateType())
.toString();
}
}