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
ecf0612c
Commit
ecf0612c
authored
Apr 18, 2022
by
wenyang
Committed by
akexiu
Apr 21, 2022
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人名片3.经纪人申请开通邮箱
parent
cfdf377b
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 @
ecf0612c
...
@@ -5194,10 +5194,10 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -5194,10 +5194,10 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
resp
.
setCommonResult
(
new
CommonResult
(
false
,
"经纪人ID不可为空"
));
resp
.
setCommonResult
(
new
CommonResult
(
false
,
"经纪人ID不可为空"
));
return
resp
;
return
resp
;
}
}
if
(
Strings
.
isNullOrEmpty
(
requestVO
.
getEmail
()))
{
//
if (Strings.isNullOrEmpty(requestVO.getEmail())) {
resp
.
setCommonResult
(
new
CommonResult
(
false
,
"经纪人申请的邮箱地址不可为空"
));
//
resp.setCommonResult(new CommonResult(false, "经纪人申请的邮箱地址不可为空"));
return
resp
;
//
return resp;
}
//
}
//等保调整
//等保调整
List
<
AclCustomer
>
findByObjSortable
=
aclPractitionerDALService
.
getAclCustomers
(
practitionerId
,
null
);
List
<
AclCustomer
>
findByObjSortable
=
aclPractitionerDALService
.
getAclCustomers
(
practitionerId
,
null
);
if
(
null
==
findByObjSortable
)
{
if
(
null
==
findByObjSortable
)
{
...
@@ -5211,10 +5211,10 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -5211,10 +5211,10 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
resp
.
setCommonResult
(
new
CommonResult
(
false
,
"经纪人银盾保险专属办公邮箱已开通,无需在申请!"
));
resp
.
setCommonResult
(
new
CommonResult
(
false
,
"经纪人银盾保险专属办公邮箱已开通,无需在申请!"
));
return
resp
;
return
resp
;
}
}
if
(!
requestVO
.
getEmail
().
equals
(
practitioner
.
getEmail
())){
//
if(!requestVO.getEmail().equals(practitioner.getEmail())){
resp
.
setCommonResult
(
new
CommonResult
(
false
,
"经纪人申请的邮箱与系统邮箱不一致,请联系管理员确认!"
));
//
resp.setCommonResult(new CommonResult(false, "经纪人申请的邮箱与系统邮箱不一致,请联系管理员确认!"));
return
resp
;
//
return resp;
}
//
}
try
{
try
{
//发送邮件给客服,同步跟进
//发送邮件给客服,同步跟进
String
toAddress
=
systemConfigService
.
getSingleConfigValue
(
"ApplyEmailToAddress"
);
String
toAddress
=
systemConfigService
.
getSingleConfigValue
(
"ApplyEmailToAddress"
);
...
@@ -5248,7 +5248,11 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -5248,7 +5248,11 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
if
(!
boole
){
if
(!
boole
){
messageText
=
messageText
.
substring
(
0
,
messageText
.
length
()-
1
);
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
);
mailService
.
sysNotify
(
toAddress
,
ccAddress
.
split
(
","
),
subject
,
messageText
);
resp
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
resp
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
}
}
...
...
hongzhong
@hongzhong
mentioned in commit
8bc1b369
Apr 21, 2022
mentioned in commit
8bc1b369
mentioned in commit 8bc1b3699e59d58102645e237812f91649286980
Toggle commit list
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