Commit f9436621 by wenyang

签署继续率品质承诺书邮件提醒

parent a51739bb
...@@ -4159,6 +4159,45 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -4159,6 +4159,45 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
fileUpload.setRemark("承诺书"); fileUpload.setRemark("承诺书");
aclFileUploadDALService.saveFileUpload(fileUpload); aclFileUploadDALService.saveFileUpload(fileUpload);
try {
//发送邮件给客服,同步跟进
String toAddress = systemConfigService.getSingleConfigValue("ContinuationRateSupportToAddress");
String ccAddress = systemConfigService.getSingleConfigValue("ContinuationRateSupportCCAddresses");
AclPractitioner aclPractitioner = aclPractitionerDALService.findById(practitionerId);
if(aclPractitioner != null){
String subject = "经纪人【"+practitionerName+"】已签署品质承诺书";
String messageText = "尊敬的银盾运营同事: </br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ";
boolean boole = false;
if(aclPractitioner.getS3Id() != null){
AclPractitionerSubordinateSystem subordinateInfo = aclPractitionerSubordinateSystemDALService.findById(aclPractitioner.getS3Id());
if (subordinateInfo != null) {
messageText += subordinateInfo.getName() + "纵队-";
boole = false;
}
}
if(aclPractitioner.getS2Id() != null){
AclPractitionerSubordinateSystem subordinateInfo = aclPractitionerSubordinateSystemDALService.findById(aclPractitioner.getS2Id());
if (subordinateInfo != null) {
messageText += subordinateInfo.getName() + "体系-";
boole = false;
}
}
if(aclPractitioner.getS1Id() != null){
AclPractitionerSubordinateSystem subordinateInfo = aclPractitionerSubordinateSystemDALService.findById(aclPractitioner.getS1Id());
if (subordinateInfo != null) {
messageText += subordinateInfo.getName() + "分部";
boole = true;
}
}
if(!boole){
messageText = messageText.substring(0,messageText.length()-1);
}
messageText += "的经纪人【"+practitionerName+"】已签署品质承诺书,请至 “AGMS后台>经纪人管理>上传文件-列表” 进行查看,并安排后续相关工作,谢谢!";
mailService.sysNotify(toAddress, ccAddress.split(","), subject, messageText);
}
} catch (Exception e) {
e.printStackTrace();
}
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
resp.setCommonResult(new CommonResult(false, e.getMessage())); resp.setCommonResult(new CommonResult(false, e.getMessage()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment