he2802 2 years ago
parent
commit
bd1782aad5

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

@@ -698,7 +698,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
      */
     @Override
     public List<ClassPeriodVo> menuAllList(UserStudyRecordQueryBo bo) {
-        if(Validator.isEmpty(bo.getCourseId())){
+        if(Validator.isEmpty(bo.getCourseId())||Validator.isEmpty(bo.getOrderGoodsId())){
             throw new CustomException("参数缺失");
         }
         //存储整个目录节列表
@@ -868,7 +868,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
 
     @Override
     public List<ClassPeriodVo> goodsAllListWithExam(UserStudyRecordQueryBo bo) {
-        if(Validator.isEmpty(bo.getGoodsId())){
+        if(Validator.isEmpty(bo.getGoodsId())||Validator.isEmpty(bo.getOrderGoodsId())){
             throw new CustomException("参数缺失");
         }
         //存储整个目录节列表
@@ -958,6 +958,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
                 section.setGradeId(bo.getGradeId());
                 section.setUserId(bo.getUserId());
                 section.setCourseId(bo.getCourseId());
+                section.setOrderGoodsId(bo.getOrderGoodsId());
                 if(section.getType()<4){
                     section.setStudyStatus(baseMapper.getStudyStatus(section));
                 }else{