|
@@ -37,6 +37,7 @@ import com.fs.qwApi.param.QwAddContactWayParam;
|
|
import com.fs.qwApi.service.QwApiService;
|
|
import com.fs.qwApi.service.QwApiService;
|
|
import com.fs.sop.mapper.QwSopLogsMapper;
|
|
import com.fs.sop.mapper.QwSopLogsMapper;
|
|
import com.fs.sop.mapper.SopUserLogsInfoMapper;
|
|
import com.fs.sop.mapper.SopUserLogsInfoMapper;
|
|
|
|
+import com.fs.sop.service.ISopUserLogsInfoService;
|
|
import com.fs.store.domain.FsUser;
|
|
import com.fs.store.domain.FsUser;
|
|
import com.fs.store.domain.FsUserCompanyUser;
|
|
import com.fs.store.domain.FsUserCompanyUser;
|
|
import com.fs.store.domain.FsUserIntegralLogs;
|
|
import com.fs.store.domain.FsUserIntegralLogs;
|
|
@@ -91,6 +92,10 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
@Autowired
|
|
@Autowired
|
|
private FsCourseWatchLogMapper courseWatchLogMapper;
|
|
private FsCourseWatchLogMapper courseWatchLogMapper;
|
|
|
|
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private ISopUserLogsInfoService iSopUserLogsInfoService;
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
private QwExternalContactMapper qwExternalContactMapper;
|
|
private QwExternalContactMapper qwExternalContactMapper;
|
|
@Autowired
|
|
@Autowired
|
|
@@ -469,6 +474,9 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
}
|
|
}
|
|
log.setUpdateTime(new Date());
|
|
log.setUpdateTime(new Date());
|
|
courseWatchLogMapper.updateFsCourseWatchLog(log);
|
|
courseWatchLogMapper.updateFsCourseWatchLog(log);
|
|
|
|
+
|
|
|
|
+ iSopUserLogsInfoService.updateSopUserInfoByExternalId(externalContact.getId(),param.getUserId());
|
|
|
|
+
|
|
return R.ok();
|
|
return R.ok();
|
|
|
|
|
|
}else {
|
|
}else {
|
|
@@ -483,10 +491,7 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
user.setQwExtId(param.getQwExternalId());
|
|
user.setQwExtId(param.getQwExternalId());
|
|
fsUserMapper.updateFsUser(user);
|
|
fsUserMapper.updateFsUser(user);
|
|
|
|
|
|
- List<String> list= sopUserLogsInfoMapper.selectSopUserLogsInfoByExtId(contact.getId());
|
|
|
|
- if (list!=null&& !list.isEmpty()){
|
|
|
|
- sopUserLogsInfoMapper.updateSopUserLogsInfoFsUserIdById(list,param.getUserId());
|
|
|
|
- }
|
|
|
|
|
|
+ iSopUserLogsInfoService.updateSopUserInfoByExternalId(externalContact.getId(),param.getUserId());
|
|
|
|
|
|
//绑定上之后 更新观看记录
|
|
//绑定上之后 更新观看记录
|
|
//看课记录中userId为0绑定userId
|
|
//看课记录中userId为0绑定userId
|