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
50c4b421
Commit
50c4b421
authored
Apr 18, 2022
by
wenyang
Committed by
akexiu
Apr 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人名片3.经纪人申请开通邮箱
parent
b16685c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+13
-9
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
50c4b421
...
...
@@ -5186,10 +5186,10 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
resp
.
setCommonResult
(
new
CommonResult
(
false
,
"经纪人ID不可为空"
));
return
resp
;
}
if
(
Strings
.
isNullOrEmpty
(
requestVO
.
getEmail
()))
{
resp
.
setCommonResult
(
new
CommonResult
(
false
,
"经纪人申请的邮箱地址不可为空"
));
return
resp
;
}
//
if (Strings.isNullOrEmpty(requestVO.getEmail())) {
//
resp.setCommonResult(new CommonResult(false, "经纪人申请的邮箱地址不可为空"));
//
return resp;
//
}
//等保调整
List
<
AclCustomer
>
findByObjSortable
=
aclPractitionerDALService
.
getAclCustomers
(
practitionerId
,
null
);
if
(
null
==
findByObjSortable
)
{
...
...
@@ -5203,10 +5203,10 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
resp
.
setCommonResult
(
new
CommonResult
(
false
,
"经纪人银盾保险专属办公邮箱已开通,无需在申请!"
));
return
resp
;
}
if
(!
requestVO
.
getEmail
().
equals
(
practitioner
.
getEmail
())){
resp
.
setCommonResult
(
new
CommonResult
(
false
,
"经纪人申请的邮箱与系统邮箱不一致,请联系管理员确认!"
));
return
resp
;
}
//
if(!requestVO.getEmail().equals(practitioner.getEmail())){
//
resp.setCommonResult(new CommonResult(false, "经纪人申请的邮箱与系统邮箱不一致,请联系管理员确认!"));
//
return resp;
//
}
try
{
//发送邮件给客服,同步跟进
String
toAddress
=
systemConfigService
.
getSingleConfigValue
(
"ApplyEmailToAddress"
);
...
...
@@ -5240,7 +5240,11 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
if
(!
boole
){
messageText
=
messageText
.
substring
(
0
,
messageText
.
length
()-
1
);
}
messageText
+=
"的经纪人【"
+
practitioner
.
getName
()+
"】申请开通银盾保险专属办公邮箱【"
+
practitioner
.
getEmail
()+
"】,请您在2个工作日内帮忙开通,谢谢!"
;
if
(
Strings
.
isNullOrEmpty
(
requestVO
.
getEmail
()))
{
messageText
+=
"的经纪人【"
+
practitioner
.
getName
()+
"】申请开通银盾保险专属办公邮箱【"
+
practitioner
.
getEmail
()+
"】,请您在2个工作日内帮忙开通,谢谢!"
;
}
else
{
messageText
+=
"的经纪人【"
+
practitioner
.
getName
()+
"】申请开通银盾保险专属办公邮箱,请您在2个工作日内帮忙开通,谢谢!"
;
}
mailService
.
sysNotify
(
toAddress
,
ccAddress
.
split
(
","
),
subject
,
messageText
);
resp
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
}
...
...
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