|
|
@@ -1170,6 +1170,27 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
return errorMsg;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public String pushForceOfficialInfoMore(List<ClassGradeUserQueryBo> list) {
|
|
|
+ int index = 1;
|
|
|
+ String errorMsg = "";
|
|
|
+ for (ClassGradeUserQueryBo bo : list) {
|
|
|
+ if(Validator.isEmpty(bo.getUserId())||Validator.isEmpty(bo.getOrderGoodsId())){
|
|
|
+ throw new CustomException("参数缺失");
|
|
|
+ }
|
|
|
+ LambdaUpdateWrapper<ClassGradeUser> objectLambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
|
|
+ objectLambdaUpdateWrapper.eq(ClassGradeUser::getUserId, bo.getUserId());
|
|
|
+ objectLambdaUpdateWrapper.eq(ClassGradeUser::getOrderGoodsId, bo.getOrderGoodsId());
|
|
|
+ objectLambdaUpdateWrapper.eq(ClassGradeUser::getGradeId, bo.getGradeId());
|
|
|
+ objectLambdaUpdateWrapper.ge(ClassGradeUser::getSevenPushCheck, 1);
|
|
|
+
|
|
|
+ objectLambdaUpdateWrapper.set(ClassGradeUser::getSevenPushCheck, 2);
|
|
|
+ objectLambdaUpdateWrapper.set(ClassGradeUser::getUpdateTime, DateUtils.getNowTime());
|
|
|
+ this.update(null, objectLambdaUpdateWrapper);
|
|
|
+ }
|
|
|
+ return errorMsg;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 学时推送
|
|
|
*
|