|
@@ -31,6 +31,8 @@ import com.fs.course.vo.*;
|
|
import com.fs.his.config.FsSysConfig;
|
|
import com.fs.his.config.FsSysConfig;
|
|
import com.fs.his.utils.ConfigUtil;
|
|
import com.fs.his.utils.ConfigUtil;
|
|
import com.fs.qw.Bean.MsgBean;
|
|
import com.fs.qw.Bean.MsgBean;
|
|
|
|
+import com.fs.qw.cache.IQwExternalContactCacheService;
|
|
|
|
+import com.fs.qw.cache.IQwUserCacheService;
|
|
import com.fs.qw.domain.QwExternalContact;
|
|
import com.fs.qw.domain.QwExternalContact;
|
|
import com.fs.qw.domain.QwUser;
|
|
import com.fs.qw.domain.QwUser;
|
|
import com.fs.qw.domain.QwWatchLog;
|
|
import com.fs.qw.domain.QwWatchLog;
|
|
@@ -114,7 +116,11 @@ public class FsCourseWatchLogServiceImpl extends ServiceImpl<FsCourseWatchLogMap
|
|
@Autowired
|
|
@Autowired
|
|
private ICompanyCacheService companyCacheService;
|
|
private ICompanyCacheService companyCacheService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IQwUserCacheService qwUserCacheService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IQwExternalContactCacheService qwExternalContactCacheService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 查询短链课程看课记录
|
|
* 查询短链课程看课记录
|
|
@@ -346,6 +352,22 @@ public class FsCourseWatchLogServiceImpl extends ServiceImpl<FsCourseWatchLogMap
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // 企微用户名
|
|
|
|
+ if(ObjectUtils.isNotNull(item.getQwUserId())){
|
|
|
|
+ String qwUserName = qwUserCacheService.queryQwUserNameByUserId(item.getQwUserId());
|
|
|
|
+ if(StringUtils.isNotBlank(qwUserName)){
|
|
|
|
+ item.setQwUserName(qwUserName);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 企微外部联系人
|
|
|
|
+ if(ObjectUtils.isNotNull(item.getQwExternalContactId())){
|
|
|
|
+ String qwExternalContactName = qwExternalContactCacheService.selectQwExternalContactById(item.getQwExternalContactId());
|
|
|
|
+ if(StringUtils.isNotBlank(qwExternalContactName)){
|
|
|
|
+ item.setExternalUserName(qwExternalContactName);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
return list;
|
|
return list;
|
|
}
|
|
}
|