Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
3085c425
Commit
3085c425
authored
Aug 18, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取当前登陆人信息修改
parent
b4b30094
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
25 deletions
+51
-25
PersonIdentify.java
...n/java/com/yeejoin/equipmanage/config/PersonIdentify.java
+18
-0
PersonIdentifyAspect.java
.../com/yeejoin/equipmanage/config/PersonIdentifyAspect.java
+6
-6
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+27
-19
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/config/PersonIdentify.java
0 → 100644
View file @
3085c425
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
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/config/PersonIdentifyAspect.java
View file @
3085c425
...
@@ -40,14 +40,14 @@ public class PersonIdentifyAspect {
...
@@ -40,14 +40,14 @@ public class PersonIdentifyAspect {
// package com.yeejoin.equipmanage.controller;
// package com.yeejoin.equipmanage.controller;
// com.yeejoin.amos.boot.biz.common.controller.BaseController
// com.yeejoin.amos.boot.biz.common.controller.BaseController
@Pointcut
(
"execution(public * com.*.equipmanage.controller..*(..))"
)
//
@Pointcut("execution(public * com.*.equipmanage.controller..*(..))")
public
void
userDate
()
{
//
public void userDate() {
//
}
//
}
@Before
(
"userDate(
)"
)
@Before
(
value
=
"@annotation(com.yeejoin.equipmanage.config.PersonIdentify) && @annotation(permission
)"
)
public
void
personIdentity
(
JoinPoint
joinPoint
)
{
public
void
personIdentity
(
JoinPoint
joinPoint
,
PersonIdentify
permission
)
{
if
(
RequestContext
.
getToken
()
!=
null
&&
RequestContext
.
getExeUserId
()
!=
null
){
if
(
RequestContext
.
getToken
()
!=
null
&&
RequestContext
.
getExeUserId
()
!=
null
){
ReginParams
reginParam
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
ReginParams
reginParam
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/ConfigureController.java
View file @
3085c425
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment