优化代码。
This commit is contained in:
parent
6c1e024d51
commit
cfa56f3913
|
|
@ -68,13 +68,13 @@ public class ServiceAspect {
|
||||||
long startTime = System.currentTimeMillis();
|
long startTime = System.currentTimeMillis();
|
||||||
StopWatch stopwatch = new StopWatch();
|
StopWatch stopwatch = new StopWatch();
|
||||||
stopwatch.start("接口:" + methodInfo);
|
stopwatch.start("接口:" + methodInfo);
|
||||||
UserThreadLocal.setReqArgs(paramInfo);
|
|
||||||
Object rvt = jp.proceed();
|
|
||||||
|
|
||||||
if (Objects.isNull(UserThreadLocal.getUser())) {
|
if (Objects.isNull(UserThreadLocal.getUser())) {
|
||||||
UserLoginInfo userLoginInfo = new UserLoginInfo();
|
UserLoginInfo userLoginInfo = new UserLoginInfo();
|
||||||
UserThreadLocal.set(userLoginInfo);
|
UserThreadLocal.set(userLoginInfo);
|
||||||
}
|
}
|
||||||
|
UserThreadLocal.setReqArgs(paramInfo);
|
||||||
|
|
||||||
|
Object rvt = jp.proceed();
|
||||||
|
|
||||||
if (rvt instanceof ResponseEntity) {
|
if (rvt instanceof ResponseEntity) {
|
||||||
UserThreadLocal.setRes(ElectromagneticResultUtil.success(""));
|
UserThreadLocal.setRes(ElectromagneticResultUtil.success(""));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue