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
6e4e11e8
Commit
6e4e11e8
authored
Jun 29, 2022
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电子报聘回退优化6
parent
700239ab
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
17 deletions
+16
-17
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsHiringServiceImpl.java
+13
-14
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerHiringServiceImpl.java
+1
-1
yd-api/src/main/java/com/yd/dal/service/agms/impl/AgmsHiringDALServiceImpl.java
+1
-1
yd-api/src/main/java/com/yd/dal/service/practitioner/impl/PractitionerHiringDALServiceImpl.java
+1
-1
No files found.
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsHiringServiceImpl.java
View file @
6e4e11e8
...
@@ -209,7 +209,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -209,7 +209,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
//判断当前操作人是否具有当前流程的审批权限
//判断当前操作人是否具有当前流程的审批权限
Integer
currentStepSeq
=
requestVO
.
getHiringApproveStepsSeq
();
Integer
currentStepSeq
=
requestVO
.
getHiringApproveStepsSeq
();
if
(
currentStepSeq
==
null
)
{
if
(
currentStepSeq
==
null
)
{
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
"审批已结束"
));
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
"
hiringApproveStepsSeq为空,
审批已结束"
));
return
;
return
;
}
}
BeanPropertyValueEqualsPredicate
predicate
=
new
BeanPropertyValueEqualsPredicate
(
"stepSeq"
,
currentStepSeq
);
BeanPropertyValueEqualsPredicate
predicate
=
new
BeanPropertyValueEqualsPredicate
(
"stepSeq"
,
currentStepSeq
);
...
@@ -604,9 +604,9 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -604,9 +604,9 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
List
<
AclPractitionerHiringApproveRecords
>
recordsList
=
aclPractitionerHiringApproveRecordsDalService
.
queryListByBasicInfoId
(
basicInfoId
);
List
<
AclPractitionerHiringApproveRecords
>
recordsList
=
aclPractitionerHiringApproveRecordsDalService
.
queryListByBasicInfoId
(
basicInfoId
);
// 筛选需要提醒的经纪人id
// 筛选需要提醒的经纪人id
List
<
Long
>
practitionerIds
=
recordsList
.
stream
()
List
<
Long
>
practitionerIds
=
recordsList
.
stream
()
.
filter
(
i
->
(
Integer
.
valueOf
(
i
.
getStepSeq
())
>=
stepSeqStart
&&
Integer
.
valueOf
(
i
.
getStepSeq
())
<
stepSeq
)
.
filter
(
i
->
(
Integer
.
parseInt
(
i
.
getStepSeq
())
>=
stepSeqStart
&&
Integer
.
parseInt
(
i
.
getStepSeq
())
<
stepSeq
)
)
)
.
map
(
i
->
i
.
getApprovingPractitionerId
()
)
.
map
(
AclPractitionerHiringApproveRecords:
:
getApprovingPractitionerId
)
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
List
<
PractitionerInfo
>
practitionerList
=
aclPractitionerDalService
.
findPractitionerInfoByIdList
(
practitionerIds
);
List
<
PractitionerInfo
>
practitionerList
=
aclPractitionerDalService
.
findPractitionerInfoByIdList
(
practitionerIds
);
...
@@ -623,7 +623,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -623,7 +623,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
// 短信模板
// 短信模板
String
templateCode
=
systemConfigService
.
getSingleConfigValue
(
"ALI_SMS_HiringApproveRollBackNotice"
);
String
templateCode
=
systemConfigService
.
getSingleConfigValue
(
"ALI_SMS_HiringApproveRollBackNotice"
);
String
jumpUrl
=
systemConfigService
.
getSingleConfigValue
(
"hiringApprove_page_url"
);
// 被提醒人的姓名手机号
// 被提醒人的姓名手机号
String
mobileNo
;
String
mobileNo
;
String
name
;
String
name
;
...
@@ -632,10 +632,9 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -632,10 +632,9 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
name
=
practitioner
.
getName
();
name
=
practitioner
.
getName
();
// 1.发短信
// 1.发短信
if
(
StringUtils
.
isNotBlank
(
mobileNo
))
{
if
(
StringUtils
.
isNotBlank
(
mobileNo
))
{
logger
.
error
(
"【》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》电子报聘
回退
发送短信"
);
logger
.
error
(
"【》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》电子报聘
退回
发送短信"
);
logger
.
error
(
"【》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》"
+
name
+
": "
+
mobileNo
);
logger
.
error
(
"【》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》"
+
name
+
": "
+
mobileNo
);
// 短信内容
// 短信内容 ${name},您好!${hiringName}报聘审批被退回至${approveName}
// String content = "{\"name\":\"" + name + "\",\"hiringName\":\"" + "已回退: " + "\"}";
JSONObject
content
=
new
JSONObject
();
JSONObject
content
=
new
JSONObject
();
content
.
put
(
"name"
,
name
);
content
.
put
(
"name"
,
name
);
content
.
put
(
"hiringName"
,
orgInfo
);
content
.
put
(
"hiringName"
,
orgInfo
);
...
@@ -643,12 +642,12 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -643,12 +642,12 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
content
.
put
(
"approveName"
,
"公众号,退回原因<"
+
rejectNote
+
">"
);
content
.
put
(
"approveName"
,
"公众号,退回原因<"
+
rejectNote
+
">"
);
}
else
{
}
else
{
if
(
name
.
equals
(
approveName
))
{
if
(
name
.
equals
(
approveName
))
{
content
.
put
(
"approveName"
,
"您,退回原因<"
+
rejectNote
+
">"
);
content
.
put
(
"approveName"
,
"您,退回原因<"
+
rejectNote
+
">"
+
",请至“赢家平台>我的团队-报聘审批”进行查看审批,谢谢!"
+
jumpUrl
);
}
else
{
}
else
{
content
.
put
(
"approveName"
,
approveName
+
",退回原因<"
+
rejectNote
+
">"
);
content
.
put
(
"approveName"
,
approveName
+
",退回原因<"
+
rejectNote
+
">"
+
",请至“赢家平台>我的团队-报聘审批”进行查看审批,谢谢!"
+
jumpUrl
);
}
}
}
}
sendService
.
sendEmailOrSMS
(
"sms"
,
mobileNo
,
"0"
,
content
.
toJSONString
(),
templateCode
,
null
,
null
,
"电子报聘审批
回退
"
,
99
,
basicInfoId
);
sendService
.
sendEmailOrSMS
(
"sms"
,
mobileNo
,
"0"
,
content
.
toJSONString
(),
templateCode
,
null
,
null
,
"电子报聘审批
退回
"
,
99
,
basicInfoId
);
}
else
{
}
else
{
logger
.
error
(
"【》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》电子报聘审批人电话号码不存在"
);
logger
.
error
(
"【》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》电子报聘审批人电话号码不存在"
);
logger
.
error
(
"【》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》"
+
name
+
": "
+
mobileNo
);
logger
.
error
(
"【》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》"
+
name
+
": "
+
mobileNo
);
...
@@ -657,14 +656,14 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -657,14 +656,14 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
}
}
// 微信模板
// 微信模板
String
firstValue
=
systemConfigService
.
getSingleConfigValue
(
"TENCENT_WECHAT_TEMPLATE_FIRST_HIRING"
)
;
String
firstValue
=
"name,您好!hiringName经纪人报聘审批被退回"
;
firstValue
.
replace
(
"hiringName"
,
orgInfo
);
firstValue
=
firstValue
.
replace
(
"hiringName"
,
orgInfo
);
StringBuffer
stringBuffer
=
new
StringBuffer
(
firstValue
);
StringBuffer
stringBuffer
=
new
StringBuffer
(
firstValue
);
stringBuffer
.
append
(
";审批
回退,回退
原因<"
).
append
(
rejectNote
).
append
(
">"
);
stringBuffer
.
append
(
";审批
退回,退回
原因<"
).
append
(
rejectNote
).
append
(
">"
);
// 用现有方法发微信
// 用现有方法发微信
agmsHiringDalService
.
noticeSendWeChatMsg
(
stringBuffer
.
toString
(),
"
回退
待审批"
,
practitionerList
,
basicInfo
);
agmsHiringDalService
.
noticeSendWeChatMsg
(
stringBuffer
.
toString
(),
"
退回
待审批"
,
practitionerList
,
basicInfo
);
}
}
private
boolean
isHasNextStep
(
Long
loginPractitionerId
,
String
mobileNo
,
Long
basicInfoId
,
MdPractitionerHiringApproveSteps
nextStep
)
{
private
boolean
isHasNextStep
(
Long
loginPractitionerId
,
String
mobileNo
,
Long
basicInfoId
,
MdPractitionerHiringApproveSteps
nextStep
)
{
...
...
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerHiringServiceImpl.java
View file @
6e4e11e8
...
@@ -442,7 +442,7 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
...
@@ -442,7 +442,7 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
hiringListInfoList
=
practitionerHiringDalService
.
queryUnhandledList
(
practitionerId
);
hiringListInfoList
=
practitionerHiringDalService
.
queryUnhandledList
(
practitionerId
);
}
else
{
}
else
{
// 当前经纪人通过或拒绝的记录
// 当前经纪人通过或拒绝的记录
int
status
=
Long
.
valueOf
(
"1"
).
equals
(
approvingStatus
)
?
1
:
0
;
int
status
=
approvingStatus
.
intValue
()
;
hiringListInfoList
=
practitionerHiringDalService
.
queryHandledList
(
practitionerId
,
status
);
hiringListInfoList
=
practitionerHiringDalService
.
queryHandledList
(
practitionerId
,
status
);
}
}
...
...
yd-api/src/main/java/com/yd/dal/service/agms/impl/AgmsHiringDALServiceImpl.java
View file @
6e4e11e8
...
@@ -188,7 +188,7 @@ public class AgmsHiringDALServiceImpl implements AgmsHiringDALService {
...
@@ -188,7 +188,7 @@ public class AgmsHiringDALServiceImpl implements AgmsHiringDALService {
this
.
noticeSendSMS
(
orgInfo
,
practitionerList
,
basicInfo
);
this
.
noticeSendSMS
(
orgInfo
,
practitionerList
,
basicInfo
);
// 公众号推送通知下一位审批人进行审批
// 公众号推送通知下一位审批人进行审批
String
firstValue
=
systemConfigService
.
getSingleConfigValue
(
"TENCENT_WECHAT_TEMPLATE_FIRST_HIRING"
);
String
firstValue
=
systemConfigService
.
getSingleConfigValue
(
"TENCENT_WECHAT_TEMPLATE_FIRST_HIRING"
);
firstValue
.
replace
(
"hiringName"
,
orgInfo
);
firstValue
=
firstValue
.
replace
(
"hiringName"
,
orgInfo
);
this
.
noticeSendWeChatMsg
(
firstValue
,
"待审批"
,
practitionerList
,
basicInfo
);
this
.
noticeSendWeChatMsg
(
firstValue
,
"待审批"
,
practitionerList
,
basicInfo
);
}
}
...
...
yd-api/src/main/java/com/yd/dal/service/practitioner/impl/PractitionerHiringDALServiceImpl.java
View file @
6e4e11e8
...
@@ -146,7 +146,7 @@ public class PractitionerHiringDALServiceImpl implements PractitionerHiringDALSe
...
@@ -146,7 +146,7 @@ public class PractitionerHiringDALServiceImpl implements PractitionerHiringDALSe
continue
;
continue
;
}
}
if
(
step
.
getStepSeq
()
>
Integer
.
valueOf
(
approveStatus
))
{
if
(
approveStatus
==
null
||
step
.
getStepSeq
()
>
Integer
.
parseInt
(
approveStatus
))
{
HiringApproveRecords
obj
=
new
HiringApproveRecords
();
HiringApproveRecords
obj
=
new
HiringApproveRecords
();
obj
.
setApproveStepId
(
step
.
getId
());
obj
.
setApproveStepId
(
step
.
getId
());
...
...
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