From 35e8e9eca1897d93531a912a9264402d68b2a256 Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Thu, 1 Jan 2026 14:35:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=20[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hxhq/business/domain/Template.java | 22 ++++++++++++++++++++++ .../business/service/impl/TemplateServiceImpl.java | 1 + 2 files changed, 23 insertions(+) diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/Template.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/Template.java index 4da8c86..aa07bbf 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/Template.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/Template.java @@ -31,6 +31,12 @@ public class Template extends MpBaseEntity /** 内容 */ private String content; + /** 是否需要预填1否,10是 */ + private Integer needPre; + + /** 类型1普通模板,10敏感模板 */ + private Integer type; + /** 部门名称 */ @TableField(exist = false) private String deptName; @@ -86,6 +92,22 @@ public class Template extends MpBaseEntity return content; } + public Integer getNeedPre() { + return needPre; + } + + public void setNeedPre(Integer needPre) { + this.needPre = needPre; + } + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + public String getDeptName() { return deptName; } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/TemplateServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/TemplateServiceImpl.java index 646f9ff..4020041 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/TemplateServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/TemplateServiceImpl.java @@ -42,6 +42,7 @@ public class TemplateServiceImpl extends ServiceImpl i if(template.getStatus()!=null && template.getStatus().intValue()>0){ queryWrapper.eq("t.status",template.getStatus()); } + queryWrapper.orderByDesc("t.id"); return baseMapper.queryList(queryWrapper); }