Commit 50c4b421 by wenyang Committed by akexiu

经纪人名片3.经纪人申请开通邮箱

parent b16685c8
......@@ -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")));
}
......
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