Commit 386fd60f authored by hongguangwu's avatar hongguangwu

MVP1.7.14-商险相关

parent 26097e28
......@@ -424,9 +424,10 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
for (Map.Entry<String, TEmployeeInsurancePreQw> entry : preQwMap.entrySet()) {
customerUserLoginname = entry.getKey();
if (Common.isNotNull(userLoginNames)) {
userLoginNames += ",";
userLoginNames += "," + customerUserLoginname;
} else {
userLoginNames = customerUserLoginname;
}
userLoginNames += customerUserLoginname;
qw = entry.getValue();
tempSet = deptNumMap.get(customerUserLoginname);
if (Common.isNotNull(tempSet)) {
......@@ -443,7 +444,7 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
failNum = 0;
}
description = new StringBuilder("项目数:").append(deptNum).append("个;自动化派单人数:")
.append(allNum).append("个,<span style='color:red'>失败人数:").append(failNum).append("个</span><br>请及时至HRO系统处理,以免人员漏保!");
.append(allNum).append("个,【失败人数:").append(failNum).append("个】<br>请及时至HRO系统处理,以免人员漏保!");
qw.setDescription(description.toString());
qwList.add(qw);
}
......@@ -453,11 +454,11 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
if (Common.isNotNull(userLoginNames)) {
Map<String, String> sysUserMap = getUserQiWeiInfo(userLoginNames);
String qwInfo;
if (sysUserMap != null) {
if (!sysUserMap.isEmpty()) {
for (TEmployeeInsurancePreQw sendQw : qwList) {
qwInfo = sysUserMap.get(sendQw.getCustomerUserLoginname());
if (Common.isNotNull(qwInfo)) {
sendMessageToWx(qwInfo, sendQw.getDescription());
sendMessageToWx(qwInfo, sendQw.getDescription(), sendQw.getId());
}
}
}
......@@ -496,7 +497,7 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
}
//发送企业微信待办
private void sendMessageToWx(String useruserWx, String content) {
private void sendMessageToWx(String useruserWx, String content, String mainId) {
if (Common.isEmpty(useruserWx) || Common.isEmpty(content)) {
return;
}
......@@ -508,8 +509,8 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
RestTemplate restTemplate = new RestTemplate();
Map<String, Object> requestMap = new HashMap<>();
Map<String, Object> textcard = new HashMap<>();
textcard.put("title", "<span style='color:red'>商险自动化派单——失败提醒</span>");
textcard.put("url", String.format(SecurityConstants.WX_GET_MESSAGE_AUTH_URL, wxConfig.getCorpid(), wxConfig.getDomainName() + "/auth/oauth/wxLogin", "66" ));
textcard.put("title", "【商险自动化派单——失败提醒】");
textcard.put("url", String.format(SecurityConstants.WX_GET_MESSAGE_AUTH_URL, wxConfig.getCorpid(), wxConfig.getDomainName() + "/auth/oauth/wxLogin", "66"+mainId ));
textcard.put("description", content);
requestMap.put("touser", sendUser);
requestMap.put("agentid", wxConfig.getAgentid());
......@@ -530,7 +531,7 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
* @return: java.util.Map<java.lang.String, java.lang.String>
**/
private Map<String, String> getUserQiWeiInfo(String userLoginNames) {
Map<String, String> sysUserMap = null;
Map<String, String> sysUserMap = new HashMap<>();
// 获取项目对应的前端客服用户信息--客服账号需要正常
if (Common.isNotKong(userLoginNames)) {
R<SysUserListVo> res = upmsDaprUtils.getUserIdsByUserNames(userLoginNames);
......
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