|
@@ -150,7 +150,7 @@ public class CourseQwController extends AppBaseController {
|
|
|
long tipsTime = 0L;
|
|
long tipsTime = 0L;
|
|
|
int isFinish = 0;
|
|
int isFinish = 0;
|
|
|
int isRedPackage = 0;
|
|
int isRedPackage = 0;
|
|
|
- FsUserCourseVideoRedPackage fsUserCourseVideoRedPackage = fsUserCourseVideoRedPackageMapper.selectRedPacketByCompanyCount(param.getVideoId(), null, param.getPeriodId());
|
|
|
|
|
|
|
+ FsUserCourseVideoRedPackage fsUserCourseVideoRedPackage = fsUserCourseVideoRedPackageMapper.selectRedPacketByCompanyCount(param.getVideoId(), param.getCompanyId(), param.getPeriodId());
|
|
|
if (fsUserCourseVideoRedPackage != null && fsUserCourseVideoRedPackage.getRedPacketMoney() !=null && BigDecimal.ZERO.compareTo(fsUserCourseVideoRedPackage.getRedPacketMoney()) != 0) {
|
|
if (fsUserCourseVideoRedPackage != null && fsUserCourseVideoRedPackage.getRedPacketMoney() !=null && BigDecimal.ZERO.compareTo(fsUserCourseVideoRedPackage.getRedPacketMoney()) != 0) {
|
|
|
isRedPackage = 1;
|
|
isRedPackage = 1;
|
|
|
}
|
|
}
|
|
@@ -205,7 +205,7 @@ public class CourseQwController extends AppBaseController {
|
|
|
String redisKey = "h5OpenUser:watch:duration:" + param.getUserId() + ":" + param.getVideoId();
|
|
String redisKey = "h5OpenUser:watch:duration:" + param.getUserId() + ":" + param.getVideoId();
|
|
|
String durationStr = redisCache.getCacheObject(redisKey);
|
|
String durationStr = redisCache.getCacheObject(redisKey);
|
|
|
FsCourseWatchLog log = courseWatchLogService.getWatchCourseVideoIsOpen(param.getUserId(),param.getVideoId());
|
|
FsCourseWatchLog log = courseWatchLogService.getWatchCourseVideoIsOpen(param.getUserId(),param.getVideoId());
|
|
|
- FsUserCourseVideoRedPackage fsUserCourseVideoRedPackage = fsUserCourseVideoRedPackageMapper.selectRedPacketByCompanyCount(param.getVideoId(), null, param.getPeriodId());
|
|
|
|
|
|
|
+ FsUserCourseVideoRedPackage fsUserCourseVideoRedPackage = fsUserCourseVideoRedPackageMapper.selectRedPacketByCompanyCount(param.getVideoId(), param.getCompanyId(), param.getPeriodId());
|
|
|
if (fsUserCourseVideoRedPackage != null && fsUserCourseVideoRedPackage.getRedPacketMoney() != null && BigDecimal.ZERO.compareTo(fsUserCourseVideoRedPackage.getRedPacketMoney()) != 0) {
|
|
if (fsUserCourseVideoRedPackage != null && fsUserCourseVideoRedPackage.getRedPacketMoney() != null && BigDecimal.ZERO.compareTo(fsUserCourseVideoRedPackage.getRedPacketMoney()) != 0) {
|
|
|
isRedPackage = 1;
|
|
isRedPackage = 1;
|
|
|
}
|
|
}
|