|
|
@@ -60,12 +60,14 @@ public class CorpFollowDynamicConfigServiceImpl implements CorpFollowDynamicConf
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String createCorpFollowActiveCode(List<String> followIds, String state, Boolean isOne) throws Exception {
|
|
|
+ public String createCorpFollowActiveCode(List<String> followIds, String state, Boolean isDuty) throws Exception {
|
|
|
List<CorpFollowActiveCodeDto> codeList = new ArrayList<>();
|
|
|
- if (isOne) {
|
|
|
- Integer type = 2;
|
|
|
- if (followIds.size() == 1) {
|
|
|
- type = 1;
|
|
|
+ Integer type = 1;
|
|
|
+ if (!isDuty) {
|
|
|
+ //不是值班 多人生成一个二维码
|
|
|
+ //联系方式类型 2-多人
|
|
|
+ if (followIds.size() > 1) {
|
|
|
+ type = 2;
|
|
|
}
|
|
|
String serviceNames = corpFollowDutyRelateMapper.selectList(Wrappers.lambdaQuery(CorpFollowDutyRelate.class)
|
|
|
.in(CorpFollowDutyRelate::getFollowId, followIds)).stream().map(CorpFollowDutyRelate::getServiceName).collect(Collectors.joining(","));
|
|
|
@@ -81,7 +83,7 @@ public class CorpFollowDynamicConfigServiceImpl implements CorpFollowDynamicConf
|
|
|
throw BusinessRuntimeException.getInstance("存在被删除的客服,请刷新页面重试");
|
|
|
}
|
|
|
for (String followId : followIds) {
|
|
|
- CorpFollowActiveCodeDto corpFollowActiveCodeDto = createCorpFollowActiveCode(List.of(followId), state, 1, collect.get(followId).get(0).getServiceName());
|
|
|
+ CorpFollowActiveCodeDto corpFollowActiveCodeDto = createCorpFollowActiveCode(List.of(followId), state, type, collect.get(followId).get(0).getServiceName());
|
|
|
codeList.add(corpFollowActiveCodeDto);
|
|
|
}
|
|
|
}
|