|
@@ -41,6 +41,7 @@ import com.fs.sop.vo.QwSopLogsDoSendListTVO;
|
|
|
import com.fs.sop.vo.QwSopLogsListCVO;
|
|
|
import com.fs.system.service.ISysConfigService;
|
|
|
import com.fs.voice.utils.StringUtil;
|
|
|
+import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -159,8 +160,12 @@ public class QwSopLogsServiceImpl implements IQwSopLogsService
|
|
|
if (companyUser == null) {
|
|
|
return Collections.emptyList();
|
|
|
}
|
|
|
- if (StringUtils.isEmpty(param.getQwUserid())) {
|
|
|
- param.setQwUserid(companyUser.getQwUserId());
|
|
|
+ QwUser qwUser = new QwUser();
|
|
|
+ qwUser.setCompanyUserId(companyUser.getUserId());
|
|
|
+ List<QwUser> qwUsers = qwUserMapper.selectQwUserList(qwUser);
|
|
|
+ if (CollectionUtils.isNotEmpty(qwUsers)){
|
|
|
+ List<String> qwUserIds = qwUsers.stream().map(QwUser::getQwUserId).collect(Collectors.toList());
|
|
|
+ param.setQwUseridByList(qwUserIds);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
logger.error("根据手机号查询企业用户出现异常,手机号: {}, 异常信息: {}", param.getPhone(), e.getMessage(), e);
|