|
|
@@ -12,7 +12,9 @@ import com.fs.company.domain.CompanyMiniapp;
|
|
|
import com.fs.company.service.ICompanyMiniappService;
|
|
|
import com.fs.course.domain.FsCoursePlaySourceConfig;
|
|
|
import com.fs.course.domain.FsCourseWatchLog;
|
|
|
+import com.fs.course.domain.FsUserCourseVideo;
|
|
|
import com.fs.course.mapper.FsCoursePlaySourceConfigMapper;
|
|
|
+import com.fs.course.mapper.FsUserCourseVideoMapper;
|
|
|
import com.fs.course.service.IFsCoursePlaySourceConfigService;
|
|
|
import com.fs.course.service.IFsCourseWatchLogService;
|
|
|
import com.fs.his.domain.FsUser;
|
|
|
@@ -60,6 +62,9 @@ public class IpadSendServer {
|
|
|
private final ICompanyMiniappService companyMiniappService;
|
|
|
private final IFsCoursePlaySourceConfigService playSourceConfigService;
|
|
|
private final FsUserMapper fsUserMapper;
|
|
|
+ private final FsUserCourseVideoMapper fsUserCourseVideoMapper;
|
|
|
+
|
|
|
+
|
|
|
private static final List<String> PROJECT_NAMES = Arrays.asList("济南联志健康", "北京存在文化","宽益堂");
|
|
|
private void sendMiniProgram(BaseVo vo, QwSopCourseFinishTempSetting.Setting content, Map<String, FsCoursePlaySourceConfig> miniMap, Long companyId) {
|
|
|
// 发送参数原本的appid
|
|
|
@@ -367,6 +372,18 @@ public class IpadSendServer {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ // 查询视频是否下架
|
|
|
+ if(setting.getVideoId()!= null){
|
|
|
+ FsUserCourseVideo video = fsUserCourseVideoMapper.selectFsUserCourseVideoByVideoId( setting.getVideoId().longValue());
|
|
|
+ if(video != null){
|
|
|
+ if(video.getIsOnPut() == 1){
|
|
|
+ log.warn("SOP_LOG_ID:{}, 视频已下架,不发送", qwSopLogs.getId());
|
|
|
+ qwSopLogsService.updateQwSopLogsByWatchLogType(qwSopLogs.getId(), "视频已下架,不发送");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (qwSopLogs.getSendType() != 6 && noSop) {
|
|
|
// 客户的信息
|
|
|
// QwExternalContactHParam contactHParam = new QwExternalContactHParam();
|