Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
386fd60f
Commit
386fd60f
authored
Aug 11, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.14-商险相关
parent
26097e28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
TEmployeeInsurancePreServiceImpl.java
...vice/insurance/impl/TEmployeeInsurancePreServiceImpl.java
+10
-9
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TEmployeeInsurancePreServiceImpl.java
View file @
386fd60f
...
...
@@ -424,9 +424,10 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
for
(
Map
.
Entry
<
String
,
TEmployeeInsurancePreQw
>
entry
:
preQwMap
.
entrySet
())
{
customerUserLoginname
=
entry
.
getKey
();
if
(
Common
.
isNotNull
(
userLoginNames
))
{
userLoginNames
+=
","
;
userLoginNames
+=
","
+
customerUserLoginname
;
}
else
{
userLoginNames
=
customerUserLoginname
;
}
userLoginNames
+=
customerUserLoginname
;
qw
=
entry
.
getValue
();
tempSet
=
deptNumMap
.
get
(
customerUserLoginname
);
if
(
Common
.
isNotNull
(
tempSet
))
{
...
...
@@ -443,7 +444,7 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
failNum
=
0
;
}
description
=
new
StringBuilder
(
"项目数:"
).
append
(
deptNum
).
append
(
"个;自动化派单人数:"
)
.
append
(
allNum
).
append
(
"个,
<span style='color:red'>失败人数:"
).
append
(
failNum
).
append
(
"个</span>
<br>请及时至HRO系统处理,以免人员漏保!"
);
.
append
(
allNum
).
append
(
"个,
【失败人数:"
).
append
(
failNum
).
append
(
"个】
<br>请及时至HRO系统处理,以免人员漏保!"
);
qw
.
setDescription
(
description
.
toString
());
qwList
.
add
(
qw
);
}
...
...
@@ -453,11 +454,11 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
if
(
Common
.
isNotNull
(
userLoginNames
))
{
Map
<
String
,
String
>
sysUserMap
=
getUserQiWeiInfo
(
userLoginNames
);
String
qwInfo
;
if
(
sysUserMap
!=
null
)
{
if
(
!
sysUserMap
.
isEmpty
()
)
{
for
(
TEmployeeInsurancePreQw
sendQw
:
qwList
)
{
qwInfo
=
sysUserMap
.
get
(
sendQw
.
getCustomerUserLoginname
());
if
(
Common
.
isNotNull
(
qwInfo
))
{
sendMessageToWx
(
qwInfo
,
sendQw
.
getDescription
());
sendMessageToWx
(
qwInfo
,
sendQw
.
getDescription
()
,
sendQw
.
getId
()
);
}
}
}
...
...
@@ -496,7 +497,7 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
}
//发送企业微信待办
private
void
sendMessageToWx
(
String
useruserWx
,
String
content
)
{
private
void
sendMessageToWx
(
String
useruserWx
,
String
content
,
String
mainId
)
{
if
(
Common
.
isEmpty
(
useruserWx
)
||
Common
.
isEmpty
(
content
))
{
return
;
}
...
...
@@ -508,8 +509,8 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
RestTemplate
restTemplate
=
new
RestTemplate
();
Map
<
String
,
Object
>
requestMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
textcard
=
new
HashMap
<>();
textcard
.
put
(
"title"
,
"
<span style='color:red'>商险自动化派单——失败提醒</span>
"
);
textcard
.
put
(
"url"
,
String
.
format
(
SecurityConstants
.
WX_GET_MESSAGE_AUTH_URL
,
wxConfig
.
getCorpid
(),
wxConfig
.
getDomainName
()
+
"/auth/oauth/wxLogin"
,
"66"
));
textcard
.
put
(
"title"
,
"
【商险自动化派单——失败提醒】
"
);
textcard
.
put
(
"url"
,
String
.
format
(
SecurityConstants
.
WX_GET_MESSAGE_AUTH_URL
,
wxConfig
.
getCorpid
(),
wxConfig
.
getDomainName
()
+
"/auth/oauth/wxLogin"
,
"66"
+
mainId
));
textcard
.
put
(
"description"
,
content
);
requestMap
.
put
(
"touser"
,
sendUser
);
requestMap
.
put
(
"agentid"
,
wxConfig
.
getAgentid
());
...
...
@@ -530,7 +531,7 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
* @return: java.util.Map<java.lang.String, java.lang.String>
**/
private
Map
<
String
,
String
>
getUserQiWeiInfo
(
String
userLoginNames
)
{
Map
<
String
,
String
>
sysUserMap
=
n
ull
;
Map
<
String
,
String
>
sysUserMap
=
n
ew
HashMap
<>()
;
// 获取项目对应的前端客服用户信息--客服账号需要正常
if
(
Common
.
isNotKong
(
userLoginNames
))
{
R
<
SysUserListVo
>
res
=
upmsDaprUtils
.
getUserIdsByUserNames
(
userLoginNames
);
...
...
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