|
|
@@ -482,6 +482,15 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
return R.error().put("msg","企业编号为空,不能创建一键群发");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ // 查询公司关联小程序数据
|
|
|
+ List<CompanyMiniapp> miniList = companyMiniappService.list(new QueryWrapper<CompanyMiniapp>().orderByAsc("sort_num"));
|
|
|
+
|
|
|
+ Map<Long, Map<Integer, List<CompanyMiniapp>>> miniMap = miniList.stream().collect(Collectors.groupingBy(CompanyMiniapp::getCompanyId, Collectors.groupingBy(CompanyMiniapp::getType)));
|
|
|
+ QwCompany qwCompany = iQwCompanyService.getQwCompanyByRedis(param.getCorpId());
|
|
|
+ if (qwCompany == null ) {
|
|
|
+ return R.error().put("msg","企业不存在,请联系管理员");
|
|
|
+ }
|
|
|
List<QwSopLogs> sopLogsList;
|
|
|
if(param.getFilterMode() != null && param.getFilterMode() == 2 && param.getChatIds() != null && param.getChatIds().length > 0){
|
|
|
List<QwGroupChat> groupList = qwGroupChatMapper.selectQwGroupChatByChatIds(param.getChatIds());
|
|
|
@@ -570,40 +579,45 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
//文字和短链一起
|
|
|
case "1":
|
|
|
case "3":
|
|
|
- if ("1".equals(st.getIsBindUrl())) {
|
|
|
- String qwUserId = qwUser.getQwUserId();
|
|
|
- String companyId = qwUser.getCompanyId().toString();
|
|
|
- Long externalUserId = vo.getId();
|
|
|
-// addWatchLogIfNeeded(param.getSopId(), param.getVideoId(), param.getCourseId(), null, qwUserId, companyUserId, companyId, externalUserId, param.getStartTime(), createTime);
|
|
|
- FsCourseLinkCreateParam createParam = new FsCourseLinkCreateParam();
|
|
|
- createParam.setCourseId(param.getCourseId().longValue());
|
|
|
- createParam.setVideoId(param.getVideoId().longValue());
|
|
|
- createParam.setCorpId(qwSop.getCorpId());
|
|
|
- createParam.setCompanyUserId(Long.parseLong(companyUserId));
|
|
|
- createParam.setCompanyId(Long.parseLong(companyId));
|
|
|
- createParam.setChatId(groupUser.getChatId());
|
|
|
- createParam.setQwUserId(qwUser.getId());
|
|
|
- createParam.setDays(st.getExpiresDays());
|
|
|
- R createLink = courseLinkService.createRoomLinkUrl(createParam);
|
|
|
- if (createLink.get("code").equals(500)) {
|
|
|
- throw new BaseException("链接生成失败!");
|
|
|
- }
|
|
|
- String sortLink = (String) createLink.get("url");
|
|
|
-
|
|
|
- if (StringUtils.isNotEmpty(sortLink)) {
|
|
|
- if ("3".equals(st.getContentType())) {
|
|
|
- st.setLinkUrl(sortLink);
|
|
|
- } else {
|
|
|
- String currentValue = st.getValue();
|
|
|
- if (currentValue == null) {
|
|
|
- st.setValue(sortLink);
|
|
|
- } else {
|
|
|
- st.setValue(currentValue.replaceAll("#销售称呼#", StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText()) ? "" : qwUser.getWelcomeText()) + "\n" + sortLink);
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- log.warn("生成短链失败,跳过设置 URL。");
|
|
|
- }
|
|
|
+// if ("1".equals(st.getIsBindUrl())) {
|
|
|
+// String qwUserId = qwUser.getQwUserId();
|
|
|
+// String companyId = qwUser.getCompanyId().toString();
|
|
|
+// Long externalUserId = vo.getId();
|
|
|
+//// addWatchLogIfNeeded(param.getSopId(), param.getVideoId(), param.getCourseId(), null, qwUserId, companyUserId, companyId, externalUserId, param.getStartTime(), createTime);
|
|
|
+// FsCourseLinkCreateParam createParam = new FsCourseLinkCreateParam();
|
|
|
+// createParam.setCourseId(param.getCourseId().longValue());
|
|
|
+// createParam.setVideoId(param.getVideoId().longValue());
|
|
|
+// createParam.setCorpId(qwSop.getCorpId());
|
|
|
+// createParam.setCompanyUserId(Long.parseLong(companyUserId));
|
|
|
+// createParam.setCompanyId(Long.parseLong(companyId));
|
|
|
+// createParam.setChatId(groupUser.getChatId());
|
|
|
+// createParam.setQwUserId(qwUser.getId());
|
|
|
+// createParam.setDays(st.getExpiresDays());
|
|
|
+// R createLink = courseLinkService.createRoomLinkUrl(createParam);
|
|
|
+// if (createLink.get("code").equals(500)) {
|
|
|
+// throw new BaseException("链接生成失败!");
|
|
|
+// }
|
|
|
+// String sortLink = (String) createLink.get("url");
|
|
|
+//
|
|
|
+// if (StringUtils.isNotEmpty(sortLink)) {
|
|
|
+// if ("3".equals(st.getContentType())) {
|
|
|
+// st.setLinkUrl(sortLink);
|
|
|
+// } else {
|
|
|
+// String currentValue = st.getValue();
|
|
|
+// if (currentValue == null) {
|
|
|
+// st.setValue(sortLink);
|
|
|
+// } else {
|
|
|
+// st.setValue(currentValue.replaceAll("#销售称呼#", StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText()) ? "" : qwUser.getWelcomeText()) + "\n" + sortLink);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// log.warn("生成短链失败,跳过设置 URL。");
|
|
|
+// }
|
|
|
+// }
|
|
|
+
|
|
|
+ if ("1".equals(st.getContentType())) {
|
|
|
+ st.setValue(st.getValue()
|
|
|
+ .replaceAll("#销售称呼#", StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText()) ? "" : qwUser.getWelcomeText()));
|
|
|
}
|
|
|
break;
|
|
|
//小程序单独
|
|
|
@@ -611,11 +625,31 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
String linkByMiniApp = createLinkByMiniApp(st, param.getCorpId(), new Date(), param.getCourseId(), param.getVideoId(),
|
|
|
qwUser.getId(), qwUser.getCompanyUserId().toString(), qwUser.getCompanyId().toString(), null, config, qwGroupChat.getChatId());
|
|
|
|
|
|
- if (StringUtil.strIsNullOrEmpty(config.getMiniprogramAppid())) {
|
|
|
- log.error("配置中无小程序id,采用默认的");
|
|
|
- st.setMiniprogramAppid("wxc84c6f789ba7f176");
|
|
|
+ String miniAppId = null;
|
|
|
+
|
|
|
+ int listIndex = 1;
|
|
|
+ if (!miniMap.isEmpty() && qwUser.getSendMsgType() == 1) {
|
|
|
+ Map<Integer, List<CompanyMiniapp>> integerListMap = miniMap.get(qwUser.getCompanyId());
|
|
|
+ if (integerListMap != null) {
|
|
|
+ List<CompanyMiniapp> miniapps = integerListMap.get(listIndex);
|
|
|
+
|
|
|
+ if (miniapps != null && !miniapps.isEmpty()) {
|
|
|
+ CompanyMiniapp companyMiniapp = miniapps.get(0);
|
|
|
+ if (companyMiniapp != null && !StringUtil.strIsNullOrEmpty(companyMiniapp.getAppId())) {
|
|
|
+ miniAppId = companyMiniapp.getAppId();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (StringUtil.strIsNullOrEmpty(miniAppId) && !StringUtil.strIsNullOrEmpty(qwCompany.getMiniAppId())) {
|
|
|
+ miniAppId = qwCompany.getMiniAppId();
|
|
|
+ }
|
|
|
+ st.setMiniType(listIndex);
|
|
|
+ if (!StringUtil.strIsNullOrEmpty(miniAppId)) {
|
|
|
+ st.setMiniprogramAppid(miniAppId);
|
|
|
} else {
|
|
|
- st.setMiniprogramAppid(config.getMiniprogramAppid());
|
|
|
+ log.error("公司的小程序id为空:采用了前端传的固定值" + sopLogs.getSopId());
|
|
|
}
|
|
|
|
|
|
st.setMiniprogramPage(linkByMiniApp);
|
|
|
@@ -677,50 +711,73 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
//文字和短链一起
|
|
|
case "1":
|
|
|
case "3":
|
|
|
- if ("1".equals(st.getIsBindUrl())) {
|
|
|
- FsCourseLinkCreateParam createParam = new FsCourseLinkCreateParam();
|
|
|
- createParam.setCourseId(param.getCourseId().longValue());
|
|
|
- createParam.setVideoId(param.getVideoId().longValue());
|
|
|
- createParam.setCorpId(groupChat.getCorpId());
|
|
|
- createParam.setCompanyUserId(qwUser.getCompanyUserId());
|
|
|
- createParam.setCompanyId(qwUser.getCompanyId());
|
|
|
- createParam.setChatId(groupChat.getChatId());
|
|
|
- createParam.setQwUserId(qwUser.getId());
|
|
|
- createParam.setDays(st.getExpiresDays());
|
|
|
- R createLink = courseLinkService.createRoomLinkUrl(createParam);
|
|
|
- if (createLink.get("code").equals(500)) {
|
|
|
- throw new BaseException("链接生成失败!");
|
|
|
- }
|
|
|
- String link = (String) createLink.get("url");
|
|
|
- if (StringUtils.isNotEmpty(link)) {
|
|
|
- if ("3".equals(st.getContentType())) {
|
|
|
- st.setLinkUrl(link);
|
|
|
- } else {
|
|
|
- String currentValue = st.getValue();
|
|
|
- if (currentValue == null) {
|
|
|
- st.setValue(link);
|
|
|
- } else {
|
|
|
- st.setValue(currentValue
|
|
|
- .replaceAll("#销售称呼#", StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText()) ? "" : qwUser.getWelcomeText())
|
|
|
- + "\n" + link);
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- log.error("生成短链失败,跳过设置 URL。");
|
|
|
- }
|
|
|
+// if ("1".equals(st.getIsBindUrl())) {
|
|
|
+// FsCourseLinkCreateParam createParam = new FsCourseLinkCreateParam();
|
|
|
+// createParam.setCourseId(param.getCourseId().longValue());
|
|
|
+// createParam.setVideoId(param.getVideoId().longValue());
|
|
|
+// createParam.setCorpId(groupChat.getCorpId());
|
|
|
+// createParam.setCompanyUserId(qwUser.getCompanyUserId());
|
|
|
+// createParam.setCompanyId(qwUser.getCompanyId());
|
|
|
+// createParam.setChatId(groupChat.getChatId());
|
|
|
+// createParam.setQwUserId(qwUser.getId());
|
|
|
+// createParam.setDays(st.getExpiresDays());
|
|
|
+// R createLink = courseLinkService.createRoomLinkUrl(createParam);
|
|
|
+// if (createLink.get("code").equals(500)) {
|
|
|
+// throw new BaseException("链接生成失败!");
|
|
|
+// }
|
|
|
+// String link = (String) createLink.get("url");
|
|
|
+// if (StringUtils.isNotEmpty(link)) {
|
|
|
+// if ("3".equals(st.getContentType())) {
|
|
|
+// st.setLinkUrl(link);
|
|
|
+// } else {
|
|
|
+// String currentValue = st.getValue();
|
|
|
+// if (currentValue == null) {
|
|
|
+// st.setValue(link);
|
|
|
+// } else {
|
|
|
+// st.setValue(currentValue
|
|
|
+// .replaceAll("#销售称呼#", StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText()) ? "" : qwUser.getWelcomeText())
|
|
|
+// + "\n" + link);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// log.error("生成短链失败,跳过设置 URL。");
|
|
|
+// }
|
|
|
+// }
|
|
|
+ if ("1".equals(st.getContentType())) {
|
|
|
+ st.setValue(st.getValue()
|
|
|
+ .replaceAll("#销售称呼#", StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText()) ? "" : qwUser.getWelcomeText()));
|
|
|
}
|
|
|
-
|
|
|
break;
|
|
|
//小程序单独
|
|
|
case "4":
|
|
|
String linkByMiniApp = createLinkByMiniApp(st, param.getCorpId(), new Date(), param.getCourseId(), param.getVideoId(),
|
|
|
qwUser.getId(), qwUser.getCompanyUserId().toString(), qwUser.getCompanyId().toString(), null, config, groupChat.getChatId());
|
|
|
|
|
|
- if (StringUtil.strIsNullOrEmpty(config.getMiniprogramAppid())) {
|
|
|
- log.error("配置中无小程序id,采用默认的");
|
|
|
- st.setMiniprogramAppid("wxc84c6f789ba7f176");
|
|
|
+ String miniAppId = null;
|
|
|
+
|
|
|
+ int listIndex = 1;
|
|
|
+ if (!miniMap.isEmpty() && qwUser.getSendMsgType() == 1) {
|
|
|
+ Map<Integer, List<CompanyMiniapp>> integerListMap = miniMap.get(qwUser.getCompanyId());
|
|
|
+ if (integerListMap != null) {
|
|
|
+ List<CompanyMiniapp> miniapps = integerListMap.get(listIndex);
|
|
|
+
|
|
|
+ if (miniapps != null && !miniapps.isEmpty()) {
|
|
|
+ CompanyMiniapp companyMiniapp = miniapps.get(0);
|
|
|
+ if (companyMiniapp != null && !StringUtil.strIsNullOrEmpty(companyMiniapp.getAppId())) {
|
|
|
+ miniAppId = companyMiniapp.getAppId();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (StringUtil.strIsNullOrEmpty(miniAppId) && !StringUtil.strIsNullOrEmpty(qwCompany.getMiniAppId())) {
|
|
|
+ miniAppId = qwCompany.getMiniAppId();
|
|
|
+ }
|
|
|
+ st.setMiniType(listIndex);
|
|
|
+ if (!StringUtil.strIsNullOrEmpty(miniAppId)) {
|
|
|
+ st.setMiniprogramAppid(miniAppId);
|
|
|
} else {
|
|
|
- st.setMiniprogramAppid(config.getMiniprogramAppid());
|
|
|
+ log.error("公司的小程序id为空:采用了前端传的固定值" + sopLogs.getSopId());
|
|
|
}
|
|
|
|
|
|
st.setMiniprogramPage(linkByMiniApp);
|
|
|
@@ -743,14 +800,6 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
}).collect(Collectors.toList());
|
|
|
}
|
|
|
}else{
|
|
|
-
|
|
|
-
|
|
|
- // 查询公司关联小程序数据
|
|
|
- List<CompanyMiniapp> miniList = companyMiniappService.list(new QueryWrapper<CompanyMiniapp>().orderByAsc("sort_num"));
|
|
|
-
|
|
|
- Map<Long, Map<Integer, List<CompanyMiniapp>>> miniMap = miniList.stream().collect(Collectors.groupingBy(CompanyMiniapp::getCompanyId, Collectors.groupingBy(CompanyMiniapp::getType)));
|
|
|
-
|
|
|
-
|
|
|
sopLogsList = new ArrayList<>();
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
List<SopUserLogsInfo> sopUserLogsInfos = sopUserLogsInfoMapper.selectSopUserLogsInfoByIds(param.getIds());
|
|
|
@@ -783,12 +832,6 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
// domainName = config.getRealLinkDomainName();
|
|
|
// }
|
|
|
|
|
|
- QwCompany qwCompany = iQwCompanyService.getQwCompanyByRedis(param.getCorpId());
|
|
|
-
|
|
|
- if (qwCompany == null ) {
|
|
|
- return R.error().put("msg","企业不存在,请联系管理员");
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
String finalDomainName = "domainName";
|
|
|
|
|
|
@@ -833,37 +876,37 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
//文字和短链一起
|
|
|
case "1":
|
|
|
case "3":
|
|
|
- if ("1".equals(st.getIsBindUrl())) {
|
|
|
-
|
|
|
- addWatchLogIfNeeded(param.getSopId(), param.getVideoId(), param.getCourseId(),item.getFsUserId(), qwUserId, companyUserId, companyId, item.getExternalId(),param.getStartTime(),createTime );
|
|
|
-
|
|
|
- String sortLink = generateShortLink(st, param.getCorpId(), createTime, param.getCourseId(), param.getVideoId(),
|
|
|
- Long.valueOf(qwUserId), companyUserId, companyId, finalDomainName,item.getExternalId(),config);
|
|
|
-
|
|
|
- if (StringUtils.isNotEmpty(sortLink)) {
|
|
|
- if ("3".equals(st.getContentType())) {
|
|
|
- st.setLinkUrl(sortLink);
|
|
|
- } else {
|
|
|
- String currentValue = st.getValue();
|
|
|
- if (currentValue == null) {
|
|
|
- st.setValue(sortLink);
|
|
|
- } else {
|
|
|
- st.setValue(currentValue
|
|
|
- .replaceAll("#销售称呼#",StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText())?"":qwUser.getWelcomeText())
|
|
|
- .replaceAll("#客户称呼#",StringUtil.strIsNullOrEmpty(contact.getStageStatus())|| "0".equals(contact.getStageStatus())?"同学":contact.getStageStatus())
|
|
|
- + "\n" + sortLink);
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- log.warn("生成短链失败,跳过设置 URL。");
|
|
|
- }
|
|
|
- }else {
|
|
|
+// if ("1".equals(st.getIsBindUrl())) {
|
|
|
+//
|
|
|
+// addWatchLogIfNeeded(param.getSopId(), param.getVideoId(), param.getCourseId(),item.getFsUserId(), qwUserId, companyUserId, companyId, item.getExternalId(),param.getStartTime(),createTime );
|
|
|
+//
|
|
|
+// String sortLink = generateShortLink(st, param.getCorpId(), createTime, param.getCourseId(), param.getVideoId(),
|
|
|
+// Long.valueOf(qwUserId), companyUserId, companyId, finalDomainName,item.getExternalId(),config);
|
|
|
+//
|
|
|
+// if (StringUtils.isNotEmpty(sortLink)) {
|
|
|
+// if ("3".equals(st.getContentType())) {
|
|
|
+// st.setLinkUrl(sortLink);
|
|
|
+// } else {
|
|
|
+// String currentValue = st.getValue();
|
|
|
+// if (currentValue == null) {
|
|
|
+// st.setValue(sortLink);
|
|
|
+// } else {
|
|
|
+// st.setValue(currentValue
|
|
|
+// .replaceAll("#销售称呼#",StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText())?"":qwUser.getWelcomeText())
|
|
|
+// .replaceAll("#客户称呼#",StringUtil.strIsNullOrEmpty(contact.getStageStatus())|| "0".equals(contact.getStageStatus())?"同学":contact.getStageStatus())
|
|
|
+// + "\n" + sortLink);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// log.warn("生成短链失败,跳过设置 URL。");
|
|
|
+// }
|
|
|
+// }else {
|
|
|
if ("1".equals(st.getContentType())) {
|
|
|
st.setValue(st.getValue()
|
|
|
.replaceAll("#销售称呼#",StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText())?"":qwUser.getWelcomeText())
|
|
|
.replaceAll("#客户称呼#",StringUtil.strIsNullOrEmpty(contact.getStageStatus()) || "0".equals(contact.getStageStatus())?"同学":contact.getStageStatus()));
|
|
|
}
|
|
|
- }
|
|
|
+// }
|
|
|
|
|
|
break;
|
|
|
//小程序单独
|
|
|
@@ -1265,38 +1308,38 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
//文字和短链一起
|
|
|
case "1":
|
|
|
case "3":
|
|
|
- if ("1".equals(st.getIsBindUrl())) {
|
|
|
-
|
|
|
- addWatchLogIfNeeded(item.getSopId(), param.getVideoId(), param.getCourseId(),item.getFsUserId(), String.valueOf(qwUser.getId()), companyUserId,
|
|
|
- companyId, item.getExternalId(),param.getStartTime(),dataTime );
|
|
|
-
|
|
|
- String sortLink = generateShortLink(st, param.getCorpId(), dataTime, param.getCourseId(), param.getVideoId(),
|
|
|
- qwUser.getId(), companyUserId, companyId, domainName,item.getExternalId(),config);
|
|
|
-
|
|
|
- if (StringUtils.isNotEmpty(sortLink)) {
|
|
|
- if ("3".equals(st.getContentType())) {
|
|
|
- st.setLinkUrl(sortLink);
|
|
|
- } else {
|
|
|
- String currentValue = st.getValue();
|
|
|
- if (currentValue == null) {
|
|
|
- st.setValue(sortLink);
|
|
|
- } else {
|
|
|
- st.setValue(currentValue
|
|
|
- .replaceAll("#销售称呼#",StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText())?"":qwUser.getWelcomeText())
|
|
|
- .replaceAll("#客户称呼#",StringUtil.strIsNullOrEmpty(contact.getStageStatus())|| "0".equals(contact.getStageStatus())?"同学":contact.getStageStatus())
|
|
|
- + "\n" + sortLink);
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- log.warn("生成短链失败,跳过设置 URL。");
|
|
|
- }
|
|
|
- }else {
|
|
|
+// if ("1".equals(st.getIsBindUrl())) {
|
|
|
+//
|
|
|
+// addWatchLogIfNeeded(item.getSopId(), param.getVideoId(), param.getCourseId(),item.getFsUserId(), String.valueOf(qwUser.getId()), companyUserId,
|
|
|
+// companyId, item.getExternalId(),param.getStartTime(),dataTime );
|
|
|
+//
|
|
|
+// String sortLink = generateShortLink(st, param.getCorpId(), dataTime, param.getCourseId(), param.getVideoId(),
|
|
|
+// qwUser.getId(), companyUserId, companyId, domainName,item.getExternalId(),config);
|
|
|
+//
|
|
|
+// if (StringUtils.isNotEmpty(sortLink)) {
|
|
|
+// if ("3".equals(st.getContentType())) {
|
|
|
+// st.setLinkUrl(sortLink);
|
|
|
+// } else {
|
|
|
+// String currentValue = st.getValue();
|
|
|
+// if (currentValue == null) {
|
|
|
+// st.setValue(sortLink);
|
|
|
+// } else {
|
|
|
+// st.setValue(currentValue
|
|
|
+// .replaceAll("#销售称呼#",StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText())?"":qwUser.getWelcomeText())
|
|
|
+// .replaceAll("#客户称呼#",StringUtil.strIsNullOrEmpty(contact.getStageStatus())|| "0".equals(contact.getStageStatus())?"同学":contact.getStageStatus())
|
|
|
+// + "\n" + sortLink);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// log.warn("生成短链失败,跳过设置 URL。");
|
|
|
+// }
|
|
|
+// }else {
|
|
|
if ("1".equals(st.getContentType())) {
|
|
|
st.setValue(st.getValue()
|
|
|
.replaceAll("#销售称呼#",StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText())?"":qwUser.getWelcomeText())
|
|
|
.replaceAll("#客户称呼#",StringUtil.strIsNullOrEmpty(contact.getStageStatus()) || "0".equals(contact.getStageStatus())?"同学":contact.getStageStatus()));
|
|
|
}
|
|
|
- }
|
|
|
+// }
|
|
|
|
|
|
break;
|
|
|
//小程序单独
|