代码生成器 模板仓库 模板描述
This commit is contained in:
@@ -33,6 +33,11 @@ public class TemplateRepositoryDTO {
|
||||
*/
|
||||
private String templateGroup;
|
||||
|
||||
/**
|
||||
* 模板描述
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 是否启用显示(0-隐藏 1-显示)
|
||||
*/
|
||||
|
||||
@@ -119,6 +119,7 @@ public class TemplateRepositoryServiceImpl implements ITemplateRepositoryService
|
||||
dto.setTemplateId(template.getString("id"));
|
||||
dto.setTemplateName(template.getString("name"));
|
||||
dto.setTemplateGroup(groupName);
|
||||
dto.setDescription(template.getString("description")); // 系统模板描述
|
||||
|
||||
// 从用户仓库获取显示状态
|
||||
UserTemplateRepository userRepo = repositoryMapper.selectByTemplate(userId, "system", template.getString("id"));
|
||||
@@ -139,6 +140,7 @@ public class TemplateRepositoryServiceImpl implements ITemplateRepositoryService
|
||||
dto.setTemplateId(template.getId().toString());
|
||||
dto.setTemplateName(template.getTemplateName());
|
||||
dto.setTemplateGroup(template.getTemplateGroup());
|
||||
dto.setDescription(template.getDescription()); // 用户模板描述
|
||||
|
||||
// 从用户仓库获取显示状态
|
||||
UserTemplateRepository userRepo = repositoryMapper.selectByTemplate(userId, "user", template.getId().toString());
|
||||
|
||||
Reference in New Issue
Block a user