|
@@ -744,9 +744,17 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
return R.error().put("msg","企业微信用户不存在:"+qwUserId);
|
|
|
}
|
|
|
|
|
|
+ if (qwUser.getCompanyUserId() == null) {
|
|
|
+ return R.error().put("msg","企业微信用户不存在未绑定销售-请绑定后重试:"+qwUser.getQwUserName()+"|"+qwUser.getQwUserId());
|
|
|
+ }
|
|
|
+ if (qwUser.getCompanyId() == null) {
|
|
|
+ return R.error().put("msg","企业微信用户不存在未绑定销售公司-请绑定后重试:"+qwUser.getQwUserName()+"|"+qwUser.getQwUserId());
|
|
|
+ }
|
|
|
+
|
|
|
String companyUserId = String.valueOf(qwUser.getCompanyUserId()).trim();
|
|
|
String companyId = String.valueOf(qwUser.getCompanyId()).trim();
|
|
|
|
|
|
+
|
|
|
//域名
|
|
|
// String domainName = companyUserMapper.selectDomainByUserId(Long.parseLong(companyUserId));
|
|
|
// if (StringUtils.isEmpty(domainName)){
|
|
@@ -1028,14 +1036,20 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
log.error("员工信息用户不存在:" + key.getKey()+",企业id:"+key.getValue());
|
|
|
}else {
|
|
|
|
|
|
- List<QwSopLogs> sopLogsList = processInsertSopUserLogsInfo(logs, qwUser, param, words, config, qwCompany, finalSort,
|
|
|
- finalSendType,miniMap );
|
|
|
+ if (qwUser.getCompanyUserId()!=null && qwUser.getCompanyId()!=null){
|
|
|
+ List<QwSopLogs> sopLogsList = processInsertSopUserLogsInfo(logs, qwUser, param, words, config, qwCompany, finalSort,
|
|
|
+ finalSendType,miniMap );
|
|
|
|
|
|
- //批量插入 发送记录
|
|
|
- if (!sopLogsList.isEmpty()) {
|
|
|
- processAndInsertQwSopLogsBySendMsg(sopLogsList);
|
|
|
+ //批量插入 发送记录
|
|
|
+ if (!sopLogsList.isEmpty()) {
|
|
|
+ processAndInsertQwSopLogsBySendMsg(sopLogsList);
|
|
|
+ }
|
|
|
+
|
|
|
+ }else {
|
|
|
+ log.error("员工未绑定销售账号 请先绑定 :" + qwUser.getQwUserName()+",账号id:"+qwUser.getQwUserId());
|
|
|
}
|
|
|
|
|
|
+
|
|
|
}
|
|
|
|
|
|
});
|
|
@@ -1063,12 +1077,12 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
List<QwSopLogs> sopLogsList=new ArrayList<>();
|
|
|
|
|
|
//域名
|
|
|
- String domainName = companyUserMapper.selectDomainByUserId(qwUser.getCompanyUserId());
|
|
|
- if (StringUtils.isEmpty(domainName)){
|
|
|
- domainName = config.getRealLinkDomainName();
|
|
|
- }
|
|
|
+// String domainName = companyUserMapper.selectDomainByUserId(qwUser.getCompanyUserId());
|
|
|
+// if (StringUtils.isEmpty(domainName)){
|
|
|
+// domainName = config.getRealLinkDomainName();
|
|
|
+// }
|
|
|
|
|
|
- String finalDomainName = domainName;
|
|
|
+ String finalDomainName = "domainName";
|
|
|
|
|
|
sopUserLogsInfos.forEach(item->{
|
|
|
|