瀏覽代碼

修改---短信异常,影响审核流程的bug,

zhouhaijun 2 周之前
父節點
當前提交
36ef68153b
共有 1 個文件被更改,包括 9 次插入3 次删除
  1. 9 3
      src/main/java/com/bootdo/datas/service/impl/GyDataServiceImpl.java

+ 9 - 3
src/main/java/com/bootdo/datas/service/impl/GyDataServiceImpl.java

@@ -580,9 +580,15 @@ public class GyDataServiceImpl implements GyDataService {
                         GyUnitDO gyUnitDO = gyUnitDao.getGyUnitByCreditCode(importDTO.getGyUnitId());
                         log.error("=====================发送短信了===企业信息查询==="+gyUnitDO.toString());
                         if(Objects.nonNull(gyUnitDO)){
-                            log.error("=====================发送短信了======"+gyUnitDO.toString());
-                            messageService.importance(gyUnitDO.getDataSecurityWay()+","+gyUnitDO.getMobilePhone(),
-                                    importDTO.getDataName());
+                            try {
+                                log.error("=====================发送短信了===start==="+gyUnitDO.toString());
+                                messageService.importance(gyUnitDO.getDataSecurityWay()+","+gyUnitDO.getMobilePhone(),
+                                        importDTO.getDataName());
+                                log.error("=====================发送短信了===end==="+gyUnitDO.toString());
+                            } catch (Exception e) {
+                                log.error("=============messageService.importance=======error======="+e.getMessage());
+                                e.printStackTrace();
+                            }
                         }else {
                             log.error("=========企业的组织机构代码:"+importDTO.getGyUnitId()+",查询不到对应的企业信息===========");
                         }