|
@@ -450,9 +450,7 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
b = this.updateById(update);
|
|
b = this.updateById(update);
|
|
if(Validator.isNotEmpty(update.getResult())){
|
|
if(Validator.isNotEmpty(update.getResult())){
|
|
- System.out.println(userSubscribeVo.getResult()+"考试结果");
|
|
|
|
if(!update.getResult().equals(userSubscribeVo.getResult())){
|
|
if(!update.getResult().equals(userSubscribeVo.getResult())){
|
|
- System.out.println("不相等");
|
|
|
|
//考试结果有变更,发送短信
|
|
//考试结果有变更,发送短信
|
|
UserSubscribe userSubscribe = BeanUtil.toBean(update, UserSubscribe.class);
|
|
UserSubscribe userSubscribe = BeanUtil.toBean(update, UserSubscribe.class);
|
|
sendExamPass(userSubscribe);
|
|
sendExamPass(userSubscribe);
|
|
@@ -1412,13 +1410,11 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
|
|
InformRemindVo informRemindVoPass = informRemindService.queryById(17L);
|
|
InformRemindVo informRemindVoPass = informRemindService.queryById(17L);
|
|
InformRemindVo informRemindVo = informRemindService.queryById(18L);
|
|
InformRemindVo informRemindVo = informRemindService.queryById(18L);
|
|
if (!CollectionUtils.isEmpty(informRemindVo.getInformRemindBusiness())) {
|
|
if (!CollectionUtils.isEmpty(informRemindVo.getInformRemindBusiness())) {
|
|
- System.out.println("不相等A");
|
|
|
|
Long businessId = 0L;
|
|
Long businessId = 0L;
|
|
for (InformRemindBusinessVo informRemindBusiness : informRemindVo.getInformRemindBusiness()) {
|
|
for (InformRemindBusinessVo informRemindBusiness : informRemindVo.getInformRemindBusiness()) {
|
|
businessId += baseMapper.queryBusinessId(bo.getSubscribeId(), informRemindBusiness.getBusinessId());
|
|
businessId += baseMapper.queryBusinessId(bo.getSubscribeId(), informRemindBusiness.getBusinessId());
|
|
}
|
|
}
|
|
if (businessId > 0 &&Validator.isNotEmpty(userSubscribeVo.getResult())) {
|
|
if (businessId > 0 &&Validator.isNotEmpty(userSubscribeVo.getResult())) {
|
|
- System.out.println("不相等AC");
|
|
|
|
if (userSubscribeVo.getResult().equals(1)) {
|
|
if (userSubscribeVo.getResult().equals(1)) {
|
|
if (informRemindVoPass.getWayStatus().equals(1)) {
|
|
if (informRemindVoPass.getWayStatus().equals(1)) {
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
@@ -1453,7 +1449,7 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
|
|
Map<String, Object> param = new HashMap<>();
|
|
Map<String, Object> param = new HashMap<>();
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
param.put("score", bo.getPerformance());
|
|
param.put("score", bo.getPerformance());
|
|
- param.put("number", bo.getCertificateCode());
|
|
|
|
|
|
+ param.put("number", Validator.isEmpty(bo.getCertificateCode())?"":bo.getCertificateCode());
|
|
IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), newExamPass);
|
|
IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), newExamPass);
|
|
}
|
|
}
|
|
}
|
|
}
|