优化单据频繁提交的提示
This commit is contained in:
@@ -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 = "抱歉,请不要频繁提交单据";
|
||||
|
||||
/**
|
||||
* 单据明细信息
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user