Commit 386fd60f authored by hongguangwu's avatar hongguangwu

MVP1.7.14-商险相关

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