【fix sonar】RepeatSubmitAspect文件
This commit is contained in:
+1
-1
@@ -35,6 +35,7 @@ public class RepeatSubmitAspect extends BaseAspect{
|
|||||||
*/
|
*/
|
||||||
@Pointcut("@annotation(jRepeat)")
|
@Pointcut("@annotation(jRepeat)")
|
||||||
public void pointCut(JRepeat jRepeat) {
|
public void pointCut(JRepeat jRepeat) {
|
||||||
|
// do point
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -51,7 +52,6 @@ public class RepeatSubmitAspect extends BaseAspect{
|
|||||||
// 获取参数
|
// 获取参数
|
||||||
Object[] args = joinPoint.getArgs();
|
Object[] args = joinPoint.getArgs();
|
||||||
// 进行一些参数的处理,比如获取订单号,操作人id等
|
// 进行一些参数的处理,比如获取订单号,操作人id等
|
||||||
// StringBuffer lockKeyBuffer = new StringBuffer();
|
|
||||||
String key =getValueBySpEL(jRepeat.lockKey(), parameterNames, args,"RepeatSubmit").get(0);
|
String key =getValueBySpEL(jRepeat.lockKey(), parameterNames, args,"RepeatSubmit").get(0);
|
||||||
// 公平加锁,lockTime后锁自动释放
|
// 公平加锁,lockTime后锁自动释放
|
||||||
boolean isLocked = false;
|
boolean isLocked = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user