|
@@ -10,6 +10,7 @@ import com.fs.common.enums.DataSourceType;
|
|
import com.fs.common.exception.base.BaseException;
|
|
import com.fs.common.exception.base.BaseException;
|
|
import com.fs.common.utils.PubFun;
|
|
import com.fs.common.utils.PubFun;
|
|
import com.fs.common.utils.StringUtils;
|
|
import com.fs.common.utils.StringUtils;
|
|
|
|
+import com.fs.company.mapper.CompanyUserMapper;
|
|
import com.fs.company.service.ICompanyUserService;
|
|
import com.fs.company.service.ICompanyUserService;
|
|
import com.fs.company.vo.CompanyQwUserByIdsVo;
|
|
import com.fs.company.vo.CompanyQwUserByIdsVo;
|
|
import com.fs.fastgptApi.util.AudioUtils;
|
|
import com.fs.fastgptApi.util.AudioUtils;
|
|
@@ -46,7 +47,7 @@ public class QwSopTempVoiceServiceImpl extends ServiceImpl<QwSopTempVoiceMapper,
|
|
private final IQwSopTempContentService qwSopTempContentService;
|
|
private final IQwSopTempContentService qwSopTempContentService;
|
|
private final QwSopMapper qwSopMapper;
|
|
private final QwSopMapper qwSopMapper;
|
|
private final QwSopTempDayMapper qwSopTempDayMapper;
|
|
private final QwSopTempDayMapper qwSopTempDayMapper;
|
|
- private final ICompanyUserService companyUserService;
|
|
|
|
|
|
+ private final CompanyUserMapper companyUserMapper;
|
|
private final QwSopTempVoiceMapper qwSopTempVoiceMapper;
|
|
private final QwSopTempVoiceMapper qwSopTempVoiceMapper;
|
|
/**
|
|
/**
|
|
* 查询模板对应的销售语音文件
|
|
* 查询模板对应的销售语音文件
|
|
@@ -177,7 +178,7 @@ public class QwSopTempVoiceServiceImpl extends ServiceImpl<QwSopTempVoiceMapper,
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
List<Long> qwUserIdList = sopList.stream().flatMap(e -> Arrays.stream(e.getQwUserIds().split(","))).distinct().filter(StringUtils::isNotEmpty).map(Long::parseLong).collect(Collectors.toList());
|
|
List<Long> qwUserIdList = sopList.stream().flatMap(e -> Arrays.stream(e.getQwUserIds().split(","))).distinct().filter(StringUtils::isNotEmpty).map(Long::parseLong).collect(Collectors.toList());
|
|
- List<CompanyQwUserByIdsVo> companyUserList = companyUserService.selectCompanyQwUserByIds(qwUserIdList);
|
|
|
|
|
|
+ List<CompanyQwUserByIdsVo> companyUserList = companyUserMapper.selectCompanyQwUserByIds(qwUserIdList);
|
|
if (companyUserList.isEmpty()) {
|
|
if (companyUserList.isEmpty()) {
|
|
log.info("sop任务里面的销售为空跳过生成");
|
|
log.info("sop任务里面的销售为空跳过生成");
|
|
qwSopTempDayMapper.updateVoice(dayId);
|
|
qwSopTempDayMapper.updateVoice(dayId);
|