feat(model): 在 ProjectBudgetCostDetailTemp 类中添加 categoryStr 字段

- 在 ProjectBudgetCostDetailTemp 类中添加 categoryStr 字段,用于存储类别字符串
- 使用 @Transient 注解标记该字段,表明它不是数据库表中的列
dev_2.0.2
chenhao 2024-12-20 11:16:06 +08:00
parent 603ea45788
commit 03ab45f7b8
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
*
@ -13,6 +14,7 @@ import javax.persistence.Table;
@Table(name = "project_budget_cost_detail_temp")
@Data
public class ProjectBudgetCostDetailTemp extends ProjectBudgetCostDetailBase{
@Transient
private String categoryStr;
public ProjectBudgetCostDetail toProjectBudgetCostDetail(){
ProjectBudgetCostDetail detail = new ProjectBudgetCostDetail();