|
@@ -1378,6 +1378,10 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
redPacketLog.setWatchLogId(log.getLogId() != null ? log.getLogId() : null);
|
|
redPacketLog.setWatchLogId(log.getLogId() != null ? log.getLogId() : null);
|
|
redPacketLog.setPeriodId(param.getPeriodId());
|
|
redPacketLog.setPeriodId(param.getPeriodId());
|
|
redPacketLog.setAppId(param.getAppId());
|
|
redPacketLog.setAppId(param.getAppId());
|
|
|
|
+ if(StringUtils.equals(ENABLE_RED_PACK_ACCOUNT,"1")) {
|
|
|
|
+ redPacketLog.setAccBalanceBefore(companyMoney);
|
|
|
|
+ redPacketLog.setAccBalanceAfter(companyMoney.subtract(amount));
|
|
|
|
+ }
|
|
redPacketLogMapper.insertFsCourseRedPacketLog(redPacketLog);
|
|
redPacketLogMapper.insertFsCourseRedPacketLog(redPacketLog);
|
|
|
|
|
|
// 更新观看记录的奖励类型
|
|
// 更新观看记录的奖励类型
|