Commit 30576b9f authored by zhangyingbin's avatar zhangyingbin

修改业务注解

parent 0875b4e0
...@@ -43,9 +43,8 @@ public class BusinessIdentifyAspect { ...@@ -43,9 +43,8 @@ public class BusinessIdentifyAspect {
@Before(value = "@annotation(com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify) && @annotation(permission)") @Before(value = "@annotation(com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify) && @annotation(permission)")
public void personIdentity(JoinPoint joinPoint, BusinessIdentify permission) throws PermissionException { public void personIdentity(JoinPoint joinPoint, BusinessIdentify permission) throws PermissionException {
ReginParams reginParam = JSON.parseObject(redisUtils.get(RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken())).toString(), ReginParams.class); ReginParams reginParams = JSON.parseObject(redisUtils.get(RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken())).toString(), ReginParams.class);
if (permission.isNeedIdentity() && reginParam != null) { if (permission.isNeedIdentity() && reginParams != null) {
ReginParams reginParams = JSONObject.parseObject(redisUtils.get(RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken())).toString(), ReginParams.class);
ReginParams.BusinessInfo businessInfo = new ReginParams.BusinessInfo(); ReginParams.BusinessInfo businessInfo = new ReginParams.BusinessInfo();
//company //company
Long amosOrgId= reginParams.getCompany().getSequenceNbr(); Long amosOrgId= reginParams.getCompany().getSequenceNbr();
...@@ -79,6 +78,7 @@ public class BusinessIdentifyAspect { ...@@ -79,6 +78,7 @@ public class BusinessIdentifyAspect {
businessInfo.setUserType(userType); businessInfo.setUserType(userType);
businessInfo.setAmosUserCode(amosOrgId); businessInfo.setAmosUserCode(amosOrgId);
reginParams.setBusinessInfo(businessInfo); reginParams.setBusinessInfo(businessInfo);
redisUtils.set(RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken()), JSONObject.toJSONString(reginParams));
} }
} }
......
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