|
@@ -3482,6 +3482,13 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
if(Validator.isEmpty(bo.getGradeUserId())||Validator.isEmpty(bo.getPushStatus())){
|
|
if(Validator.isEmpty(bo.getGradeUserId())||Validator.isEmpty(bo.getPushStatus())){
|
|
|
throw new CustomException("参数缺失");
|
|
throw new CustomException("参数缺失");
|
|
|
}
|
|
}
|
|
|
|
|
+ ClassGradeUser classGradeUser = getOne(new LambdaQueryWrapper<ClassGradeUser>().eq(ClassGradeUser::getGradeId, bo.getGradeUserId()));
|
|
|
|
|
+ if(Validator.isEmpty(classGradeUser)){
|
|
|
|
|
+ throw new CustomException("数据不存在");
|
|
|
|
|
+ }
|
|
|
|
|
+ if(classGradeUser.getSevenPushCheck()!=1){
|
|
|
|
|
+ throw new CustomException("无效操作");
|
|
|
|
|
+ }
|
|
|
LambdaUpdateWrapper<ClassGradeUser> objectLambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
|
LambdaUpdateWrapper<ClassGradeUser> objectLambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
|
|
objectLambdaUpdateWrapper.eq(ClassGradeUser::getId, bo.getGradeUserId());
|
|
objectLambdaUpdateWrapper.eq(ClassGradeUser::getId, bo.getGradeUserId());
|
|
|
objectLambdaUpdateWrapper.set(ClassGradeUser::getSevenPushCheck, bo.getPushStatus()+1);
|
|
objectLambdaUpdateWrapper.set(ClassGradeUser::getSevenPushCheck, bo.getPushStatus()+1);
|