You've already forked FrameTour-BE
feat(project): 增加项目模板关联功能
- 在 ProjectEntity 中添加 templateId 字段,用于绑定模板 - 在 ProjectReqQuery 和 ProjectRespVO 中添加 templateId 和 templateName 字段 - 修改 ProjectServiceImpl 中的查询方法,增加模板名称的查询和设置 - 更新 ProjectMapper.xml 中的 SQL语句,增加 template_id 相关操作
This commit is contained in:
@@ -44,6 +44,11 @@ public class ProjectEntity {
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 模板ID,用于绑定模板
|
||||
*/
|
||||
private Long templateId;
|
||||
|
||||
private Date createAt;
|
||||
private Date updateAt;
|
||||
}
|
@@ -28,4 +28,9 @@ public class ProjectReqQuery extends BaseQueryParameterReq {
|
||||
* 状态,0禁用,1启用
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 模板ID
|
||||
*/
|
||||
private Long templateId;
|
||||
}
|
@@ -45,6 +45,16 @@ public class ProjectRespVO {
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 模板ID
|
||||
*/
|
||||
private Long templateId;
|
||||
|
||||
/**
|
||||
* 模板名称
|
||||
*/
|
||||
private String templateName;
|
||||
|
||||
private Date createAt;
|
||||
private Date updateAt;
|
||||
}
|
Reference in New Issue
Block a user