Jelajahi Sumber

登记及格短信发布出去

he2802 3 tahun lalu
induk
melakukan
3365676b9f

+ 1 - 5
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/service/impl/UserSubscribeServiceImpl.java

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