feat(project): 增加项目模板关联功能

- 在 ProjectEntity 中添加 templateId 字段,用于绑定模板
- 在 ProjectReqQuery 和 ProjectRespVO 中添加 templateId 和 templateName 字段
- 修改 ProjectServiceImpl 中的查询方法,增加模板名称的查询和设置
- 更新 ProjectMapper.xml 中的 SQL语句,增加 template_id 相关操作
This commit is contained in:
2025-09-16 01:27:40 +08:00
parent f8c7cc2db6
commit dcd5a8f930
5 changed files with 86 additions and 7 deletions

View File

@@ -44,6 +44,11 @@ public class ProjectEntity {
*/
private Integer status;
/**
* 模板ID,用于绑定模板
*/
private Long templateId;
private Date createAt;
private Date updateAt;
}

View File

@@ -28,4 +28,9 @@ public class ProjectReqQuery extends BaseQueryParameterReq {
* 状态,0禁用,1启用
*/
private Integer status;
/**
* 模板ID
*/
private Long templateId;
}

View File

@@ -45,6 +45,16 @@ public class ProjectRespVO {
*/
private Integer status;
/**
* 模板ID
*/
private Long templateId;
/**
* 模板名称
*/
private String templateName;
private Date createAt;
private Date updateAt;
}