From 6023e74ef714700809d6b1df79e91dfe6e86f874 Mon Sep 17 00:00:00 2001 From: jishenghua <752718920@qq.com> Date: Mon, 14 Jul 2025 21:14:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8D=95=E6=8D=AE=E9=A2=91?= =?UTF-8?q?=E7=B9=81=E6=8F=90=E4=BA=A4=E7=9A=84=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/jsh/erp/constants/ExceptionConstants.java | 4 ++-- .../src/main/java/com/jsh/erp/service/DepotHeadService.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jshERP-boot/src/main/java/com/jsh/erp/constants/ExceptionConstants.java b/jshERP-boot/src/main/java/com/jsh/erp/constants/ExceptionConstants.java index 02070350..fb188f9a 100644 --- a/jshERP-boot/src/main/java/com/jsh/erp/constants/ExceptionConstants.java +++ b/jshERP-boot/src/main/java/com/jsh/erp/constants/ExceptionConstants.java @@ -448,9 +448,9 @@ public class ExceptionConstants { //单据录入-单据在该状态不能强制结单 public static final int DEPOT_HEAD_FORCE_CLOSE_FAILED_CODE = 8500031; public static final String DEPOT_HEAD_FORCE_CLOSE_FAILED_MSG = "抱歉,单据:%s在该状态不能强制结单"; - //单据录入-请勿重复提交单据 + //单据录入-请勿频繁提交单据 public static final int DEPOT_HEAD_SUBMIT_REPEAT_FAILED_CODE = 8500032; - public static final String DEPOT_HEAD_SUBMIT_REPEAT_FAILED_MSG = "抱歉,请勿重复提交单据"; + public static final String DEPOT_HEAD_SUBMIT_REPEAT_FAILED_MSG = "抱歉,请不要频繁提交单据"; /** * 单据明细信息 diff --git a/jshERP-boot/src/main/java/com/jsh/erp/service/DepotHeadService.java b/jshERP-boot/src/main/java/com/jsh/erp/service/DepotHeadService.java index aba39083..e4bf1443 100644 --- a/jshERP-boot/src/main/java/com/jsh/erp/service/DepotHeadService.java +++ b/jshERP-boot/src/main/java/com/jsh/erp/service/DepotHeadService.java @@ -1118,7 +1118,7 @@ public class DepotHeadService { throw new BusinessRunTimeException(ExceptionConstants.DEPOT_HEAD_SUBMIT_REPEAT_FAILED_CODE, String.format(ExceptionConstants.DEPOT_HEAD_SUBMIT_REPEAT_FAILED_MSG)); } else { - redisService.storageKeyWithTime(keyNo, depotHead.getNumber(), 10L); + redisService.storageKeyWithTime(keyNo, depotHead.getNumber(), 3L); } //校验单号是否重复 if(checkIsBillNumberExist(0L, depotHead.getNumber())>0) {