Commit 3085c425 authored by zhangsen's avatar zhangsen

获取当前登陆人信息修改

parent b4b30094
package com.yeejoin.equipmanage.config;
import java.lang.annotation.*;
/**
* @author DELL
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface PersonIdentify {
/**
* 是否进行人员校验
* @return boolean
*/
boolean isNeedIdentity() default true;
}
......@@ -40,14 +40,14 @@ public class PersonIdentifyAspect {
// package com.yeejoin.equipmanage.controller;
// com.yeejoin.amos.boot.biz.common.controller.BaseController
@Pointcut("execution(public * com.*.equipmanage.controller..*(..))")
public void userDate() {
}
// @Pointcut("execution(public * com.*.equipmanage.controller..*(..))")
// public void userDate() {
//
// }
@Before("userDate()")
public void personIdentity(JoinPoint joinPoint) {
@Before(value = "@annotation(com.yeejoin.equipmanage.config.PersonIdentify) && @annotation(permission)")
public void personIdentity(JoinPoint joinPoint, PersonIdentify permission) {
if(RequestContext.getToken() != null && RequestContext.getExeUserId() != null){
ReginParams reginParam = JSON.parseObject(redisUtils.get(RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken())).toString(), ReginParams.class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment