From ed14b8c1d40263afd66683ec5eedb4d9443fff0e Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Tue, 20 Jan 2026 10:11:42 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A[=E8=AF=95=E9=AA=8C=E7=AE=A1?= =?UTF-8?q?=E7=90=86]=E7=BC=96=E5=8F=B7=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hxhq/business/controller/PublicController.java | 7 ++- .../main/java/com/hxhq/business/domain/SnGen.java | 10 ++++ .../java/com/hxhq/business/enums/SnTypeEnum.java | 56 ++++++++++++++++++++++ .../com/hxhq/business/service/ISnGenService.java | 2 +- .../business/service/impl/SnGenServiceImpl.java | 5 +- 5 files changed, 76 insertions(+), 4 deletions(-) create mode 100644 hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/enums/SnTypeEnum.java diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/PublicController.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/PublicController.java index a446afe..8f266b8 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/PublicController.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/PublicController.java @@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.hxhq.business.domain.*; import com.hxhq.business.dto.sj.SjListDto; import com.hxhq.business.dto.study.StudyListDto; +import com.hxhq.business.enums.NormalEnum; +import com.hxhq.business.enums.SnTypeEnum; import com.hxhq.business.enums.study.StudyStatusEnum; import com.hxhq.business.form.common.SignForm; import com.hxhq.business.form.sj.SjSearchListForm; @@ -74,11 +76,11 @@ public class PublicController extends BaseController { @GetMapping("/getSn") public AjaxResult getSn(Integer count) { if (count == null || count.intValue() <= 1) { - return AjaxResult.success("操作成功",snGenService.getNewSn()); + return AjaxResult.success("操作成功",snGenService.getNewSn(SnTypeEnum.wz.getValue())); }else{ List list = new ArrayList<>(); for (int i = 0; i < count;i++){ - list.add(snGenService.getNewSn()); + list.add(snGenService.getNewSn(SnTypeEnum.wz.getValue())); } return AjaxResult.success(list); } @@ -127,6 +129,7 @@ public class PublicController extends BaseController { @GetMapping("/templateList") public TableDataInfo list(Template template) { startPage(); + template.setStatus(NormalEnum.yes.getValue()); List