Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
c009808e
Commit
c009808e
authored
Jun 30, 2022
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电子报聘回退优化9
parent
f4756ec9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsHiringServiceImpl.java
+10
-11
No files found.
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsHiringServiceImpl.java
View file @
c009808e
...
@@ -616,7 +616,10 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -616,7 +616,10 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
approveName
=
"报聘人"
;
approveName
=
"报聘人"
;
}
}
// 1.查询审批记录
// 1.获取通知人员列表
ArrayList
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<>();
// 2.查询审批记录
List
<
AclPractitionerHiringApproveRecords
>
recordsList
=
aclPractitionerHiringApproveRecordsDalService
.
queryListByBasicInfoId
(
basicInfoId
);
List
<
AclPractitionerHiringApproveRecords
>
recordsList
=
aclPractitionerHiringApproveRecordsDalService
.
queryListByBasicInfoId
(
basicInfoId
);
// 2.1 如果有审批记录,筛选需要提醒的审批经纪人id
// 2.1 如果有审批记录,筛选需要提醒的审批经纪人id
List
<
Long
>
practitionerIds
=
recordsList
.
stream
()
List
<
Long
>
practitionerIds
=
recordsList
.
stream
()
...
@@ -627,8 +630,6 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -627,8 +630,6 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
if
(
CollectionUtils
.
isNotEmpty
(
practitionerIds
))
{
if
(
CollectionUtils
.
isNotEmpty
(
practitionerIds
))
{
List
<
PractitionerInfo
>
practitionerList
=
aclPractitionerDalService
.
findPractitionerInfoByIdList
(
practitionerIds
);
List
<
PractitionerInfo
>
practitionerList
=
aclPractitionerDalService
.
findPractitionerInfoByIdList
(
practitionerIds
);
ArrayList
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<>();
for
(
PractitionerInfo
practitionerInfo
:
practitionerList
)
{
for
(
PractitionerInfo
practitionerInfo
:
practitionerList
)
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"name"
,
practitionerInfo
.
getName
());
map
.
put
(
"name"
,
practitionerInfo
.
getName
());
...
@@ -637,22 +638,20 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -637,22 +638,20 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
list
.
add
(
map
);
list
.
add
(
map
);
}
}
// 回退提醒发消息(短信和微信推送)
this
.
approveRollBackNoticeSendMsg
(
approveName
,
rejectNote
,
list
,
basicInfoId
);
}
}
// 2.2 如果退回到报聘人,还要提醒报聘人
// 2.2 如果没有审批记录,说明是从辅导人第一步直接退回到报聘人,则只要提醒报聘人
if
(
Integer
.
valueOf
(
"0"
).
equals
(
stepSeqStart
))
{
if
(
CollectionUtils
.
isEmpty
(
practitionerIds
)
&&
Integer
.
valueOf
(
"0"
).
equals
(
stepSeqStart
))
{
AclPractitionerHiringBasicInfo
basicInfo
=
aclPractitionerHiringBasicInfoDalService
.
findById
(
basicInfoId
);
AclPractitionerHiringBasicInfo
basicInfo
=
aclPractitionerHiringBasicInfoDalService
.
findById
(
basicInfoId
);
AclCustomer
customer
=
aclCustomerDalService
.
findByMobileNo
(
basicInfo
.
getMobileNo
());
AclCustomer
customer
=
aclCustomerDalService
.
findByMobileNo
(
basicInfo
.
getMobileNo
());
Map
<
String
,
String
>
map
=
new
HashMap
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"name"
,
basicInfo
.
getName
());
map
.
put
(
"name"
,
basicInfo
.
getName
());
map
.
put
(
"mobileNo"
,
basicInfo
.
getMobileNo
());
map
.
put
(
"mobileNo"
,
basicInfo
.
getMobileNo
());
map
.
put
(
"ydWechatOpenid"
,
customer
==
null
?
null
:
customer
.
getYdWechatOpenid
());
map
.
put
(
"ydWechatOpenid"
,
customer
==
null
?
null
:
customer
.
getYdWechatOpenid
());
map
.
put
(
"approveName"
,
approveName
);
ArrayList
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<>();
list
.
add
(
map
);
list
.
add
(
map
);
// 回退提醒发消息(短信和微信推送)
}
// 3.回退提醒发消息(短信和微信推送)
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
this
.
approveRollBackNoticeSendMsg
(
approveName
,
rejectNote
,
list
,
basicInfoId
);
this
.
approveRollBackNoticeSendMsg
(
approveName
,
rejectNote
,
list
,
basicInfoId
);
}
}
}
}
...
...
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