|
@@ -346,7 +346,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
|
|
|
private void userPlanSave(UserStudyRecord entity) {
|
|
|
//搜索该用户得商品有没有计划没有跳过,完整播放且计划里没有该学习记录更新学习计划状态
|
|
|
- if (baseMapper.userPlanSave(entity.getGoodsId()) > 0 && entity.getStatus().equals(1)) {
|
|
|
+ if (baseMapper.userPlanSave(entity.getGoodsId()) > 0 && entity.getStatus() != null && entity.getStatus().equals(1)) {
|
|
|
Long planId = baseMapper.userPlanSaveId(entity.getGoodsId());
|
|
|
entity.setPlanId(planId);
|
|
|
if (baseMapper.selectPland(entity) < 1) {
|