PreventRepeatSubmit
This commit is contained in:
parent
0d64197abf
commit
e834d015d9
|
|
@ -3,7 +3,7 @@ package com.bonus.material.basic.controller;
|
|||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.bonus.common.log.enums.OperaType;
|
||||
import com.bonus.material.annotation.PreventRepeatSubmit;
|
||||
import com.bonus.material.common.annotation.PreventRepeatSubmit;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package com.bonus.material.annotation;
|
||||
package com.bonus.material.common.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
package com.bonus.material.aspect;
|
||||
package com.bonus.material.common.aspect;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.bonus.common.biz.exception.BusinessException;
|
||||
import com.bonus.common.biz.enums.HttpCodeEnum;
|
||||
import com.bonus.material.annotation.PreventRepeatSubmit;
|
||||
import com.bonus.material.utils.RedisCache;
|
||||
import com.bonus.material.common.annotation.PreventRepeatSubmit;
|
||||
import com.bonus.material.common.utils.RedisCache;
|
||||
import org.aspectj.lang.ProceedingJoinPoint;
|
||||
import org.aspectj.lang.annotation.Around;
|
||||
import org.aspectj.lang.annotation.Aspect;
|
||||
|
|
@ -30,7 +30,7 @@ public class PreventRepeatSubmitAspect {
|
|||
private RedisCache redisCache;
|
||||
|
||||
// 定义一个切入点
|
||||
@Pointcut("@annotation(com.bonus.material.annotation.PreventRepeatSubmit)")
|
||||
@Pointcut("@annotation(com.bonus.material.common.annotation.PreventRepeatSubmit)")
|
||||
public void preventRepeatSubmit() {
|
||||
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
package com.bonus.material.common.constant;
|
||||
|
||||
public class BmConfigItems {
|
||||
public final String LEASE_AUDIT_ROLE_KEYS = "LeaseAuditRoleKeys";
|
||||
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
package com.bonus.material.common.constant;
|
||||
|
||||
/**
|
||||
* 仓储通用常量信息
|
||||
*
|
||||
* @author bonus
|
||||
*/
|
||||
public class MaterialConstants
|
||||
{
|
||||
private MaterialConstants(){}
|
||||
/**
|
||||
* UTF-8 字符集
|
||||
*/
|
||||
public static final String UTF8 = "UTF-8";
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.bonus.material.utils;
|
||||
package com.bonus.material.common.utils;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.redis.core.BoundSetOperations;
|
||||
Loading…
Reference in New Issue