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
05dfaad3
Commit
05dfaad3
authored
Aug 04, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
56a34467
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+1
-1
PersonIdentifyAspect.java
.../com/yeejoin/amos/patrol/config/PersonIdentifyAspect.java
+11
-5
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PlanTaskServiceImpl.java
View file @
05dfaad3
...
@@ -676,7 +676,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -676,7 +676,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
paramMap
.
put
(
"next_gen_date"
,
DateUtil
.
formatDatrToStr
(
now
,
"yyyy-MM-dd"
));
paramMap
.
put
(
"next_gen_date"
,
DateUtil
.
formatDatrToStr
(
now
,
"yyyy-MM-dd"
));
planMapper
.
updPlanStatusOrGenDate
(
paramMap
);
// 更新下次任务生成日期
planMapper
.
updPlanStatusOrGenDate
(
paramMap
);
// 更新下次任务生成日期
}
}
Toke
toke
=
remoteSecurityService
.
getServerToken
();
//
Toke toke = remoteSecurityService.getServerToken();
Map
<
String
,
String
>
deptMap
=
new
HashMap
<>();
Map
<
String
,
String
>
deptMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
nameMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
nameMap
=
new
HashMap
<>();
try
{
try
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/config/PersonIdentifyAspect.java
View file @
05dfaad3
...
@@ -48,12 +48,18 @@ public class PersonIdentifyAspect {
...
@@ -48,12 +48,18 @@ public class PersonIdentifyAspect {
@Before
(
"userDate()"
)
@Before
(
"userDate()"
)
public
void
personIdentity
(
JoinPoint
joinPoint
)
throws
PermissionException
{
public
void
personIdentity
(
JoinPoint
joinPoint
)
throws
PermissionException
{
//定时任务没有token
if
(
RequestContext
.
getExeUserId
()==
null
||
RequestContext
.
getToken
()==
null
){
}
else
{
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
);
if
(
reginParam
!=
null
)
{
if
(
reginParam
!=
null
)
{
if
(
reginParam
.
getPersonIdentity
()==
null
||
reginParam
.
getPersonIdentity
().
getCompanyBizOrgCode
()==
null
)
{
if
(
reginParam
.
getPersonIdentity
()
==
null
||
reginParam
.
getPersonIdentity
().
getCompanyBizOrgCode
()
==
null
)
{
String
userId
=
reginParam
.
getUserModel
().
getUserId
();
String
userId
=
reginParam
.
getUserModel
().
getUserId
();
if
(
userId
!=
null
)
{
if
(
userId
!=
null
)
{
FeignClientResult
responseModel
=
jcsFeignClient
.
selectById
(
userId
);
FeignClientResult
responseModel
=
jcsFeignClient
.
selectById
(
userId
);
...
@@ -62,13 +68,13 @@ public class PersonIdentifyAspect {
...
@@ -62,13 +68,13 @@ public class PersonIdentifyAspect {
}
}
String
s
=
JSONObject
.
toJSONString
(
responseModel
.
getResult
());
String
s
=
JSONObject
.
toJSONString
(
responseModel
.
getResult
());
ReginParams
.
PersonIdentity
personIdentity
=
JSONObject
.
parseObject
(
s
,
ReginParams
.
PersonIdentity
.
class
);
ReginParams
.
PersonIdentity
personIdentity
=
JSONObject
.
parseObject
(
s
,
ReginParams
.
PersonIdentity
.
class
);
// ReginParams.PersonIdentity personIdentity = (ReginParams.PersonIdentity) Bean.mapToBean((Map<String, Object>) responseModel.getResult(), ReginParams.PersonIdentity.class);
// ReginParams.PersonIdentity personIdentity = (ReginParams.PersonIdentity) Bean.mapToBean((Map<String, Object>) responseModel.getResult(), ReginParams.PersonIdentity.class);
reginParam
.
setPersonIdentity
(
personIdentity
);
reginParam
.
setPersonIdentity
(
personIdentity
);
redisUtils
.
set
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
()),
JSONObject
.
toJSONString
(
reginParam
));
redisUtils
.
set
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
()),
JSONObject
.
toJSONString
(
reginParam
));
}
}
}
}
}
}
}
}
}
...
...
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