Browse Source

搜索条件新增

change 3 years ago
parent
commit
e0ff6ef194

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/service/impl/UserStudyRecordServiceImpl.java

@@ -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) {