feat(model): 在 ProjectBudgetCostDetailTemp 类中添加 categoryStr 字段
- 在 ProjectBudgetCostDetailTemp 类中添加 categoryStr 字段,用于存储类别字符串 - 使用 @Transient 注解标记该字段,表明它不是数据库表中的列dev_2.0.2
parent
603ea45788
commit
03ab45f7b8
|
@ -5,6 +5,7 @@ import lombok.Data;
|
||||||
|
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Transient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 项目预算成本明细临时表
|
* 项目预算成本明细临时表
|
||||||
|
@ -13,6 +14,7 @@ import javax.persistence.Table;
|
||||||
@Table(name = "project_budget_cost_detail_temp")
|
@Table(name = "project_budget_cost_detail_temp")
|
||||||
@Data
|
@Data
|
||||||
public class ProjectBudgetCostDetailTemp extends ProjectBudgetCostDetailBase{
|
public class ProjectBudgetCostDetailTemp extends ProjectBudgetCostDetailBase{
|
||||||
|
@Transient
|
||||||
private String categoryStr;
|
private String categoryStr;
|
||||||
public ProjectBudgetCostDetail toProjectBudgetCostDetail(){
|
public ProjectBudgetCostDetail toProjectBudgetCostDetail(){
|
||||||
ProjectBudgetCostDetail detail = new ProjectBudgetCostDetail();
|
ProjectBudgetCostDetail detail = new ProjectBudgetCostDetail();
|
||||||
|
|
Loading…
Reference in New Issue