he2802 1 年之前
父節點
當前提交
6829bb33ca

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/service/impl/UserPeriodServiceImpl.java

@@ -647,6 +647,9 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
             }
         }
         if(Validator.isNotEmpty(bo.getAllReStudy())&&bo.getAllReStudy()==1){
+            if(classGradeUser.getPeriodStatus()==-1){
+                throw new CustomException("已打回不通过,请勿重复操作");
+            }
             //全部打回重学
             LambdaUpdateWrapper<ClassGradeUser> objectLambdaUpdateWrapper = Wrappers.lambdaUpdate();
             objectLambdaUpdateWrapper.eq(ClassGradeUser::getId, classGradeUser.getId());

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/grade/UserPeriodStatusMapper.xml

@@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             and up.module_id = #{moduleId}
         </if>
         <if test="orderGoodsId != null ">
-            and (up.order_goods_id = #{orderGoodsId} or up.order_goods_id is NULL )
+            and (up.order_goods_id = #{orderGoodsId} )
         </if>
         <if test="chapterId != null">
             and up.chapter_id = #{chapterId}