|
@@ -357,6 +357,14 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
|
|
|
}
|
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
|
boolean b = this.updateById(update);
|
|
|
+ if(b&&Validator.isNotEmpty(bo.getResult())){
|
|
|
+ if(!bo.getResult().equals(userSubscribeVo.getResult())){
|
|
|
+ //考试结果有变更,发送短信
|
|
|
+ UserSubscribe userSubscribe = BeanUtil.toBean(update, UserSubscribe.class);
|
|
|
+ sendExamPass(userSubscribe);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
@@ -438,6 +446,13 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
|
|
|
}
|
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
|
b = this.updateById(update);
|
|
|
+ if(b&&Validator.isNotEmpty(update.getResult())){
|
|
|
+ if(!update.getResult().equals(userSubscribeVo.getResult())){
|
|
|
+ //考试结果有变更,发送短信
|
|
|
+ UserSubscribe userSubscribe = BeanUtil.toBean(update, UserSubscribe.class);
|
|
|
+ sendExamPass(userSubscribe);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
return b;
|
|
|
}
|