Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李苗
/
Vion-DevOps
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 21739ac2
authored
Jan 29, 2024
by
HlQ
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[fixme] 同步合同时,修复 userid 获取的 bug
1 parent
036393a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
src/main/java/vion/cron/ContractRunner.java
src/main/java/vion/cron/ContractRunner.java
View file @
21739ac
...
@@ -126,7 +126,11 @@ public class ContractRunner {
...
@@ -126,7 +126,11 @@ public class ContractRunner {
// 合同状态不为空,代表此条记录为新增,需要同步销售人信息到 r_contract_user 表中
// 合同状态不为空,代表此条记录为新增,需要同步销售人信息到 r_contract_user 表中
if
(
ObjUtil
.
isNotNull
(
v
.
getStatus
()))
{
if
(
ObjUtil
.
isNotNull
(
v
.
getStatus
()))
{
RContractUser
contractUser
=
new
RContractUser
();
RContractUser
contractUser
=
new
RContractUser
();
contractUser
.
setUserId
(
Opt
.
ofNullable
(
redisTemplate
.
opsForValue
().
get
(
"dingtalk:user:name:"
+
v
.
getSaleName
())).
map
(
Object:
:
toString
).
orElse
(
null
));
String
userId
=
Opt
.
ofNullable
(
redisTemplate
.
opsForValue
().
get
(
"dingtalk:user:name:"
+
v
.
getSaleName
()))
.
map
(
u
->
(
User
)
u
)
.
map
(
User:
:
getUserid
)
.
orElse
(
null
);
contractUser
.
setUserId
(
userId
);
contractUser
.
setUsername
(
v
.
getSaleName
());
contractUser
.
setUsername
(
v
.
getSaleName
());
contractUser
.
setContractId
(
v
.
getId
());
contractUser
.
setContractId
(
v
.
getId
());
contractUser
.
setContractNo
(
v
.
getContractNo
());
contractUser
.
setContractNo
(
v
.
getContractNo
());
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment