Forráskód Böngészése

Merge remote-tracking branch 'origin/master'

tianwu.sun 4 hete
szülő
commit
554d475e74

+ 19 - 18
src/main/java/com/bootdo/datas/service/impl/GyDataServiceImpl.java

@@ -569,26 +569,27 @@ public class GyDataServiceImpl implements GyDataService {
                 dto.setMessage("数据已被(" + roleDO.getRoleName() + ")审核驳回, 请核对");
                 examineLogService.save(dto);
             }
-
-            //通过数据id,查询数据信息
-            GyDataImportDTO importDTO = gyDataDao.get(data.getId());
-            if(Objects.nonNull(importDTO)){
-                log.error("=====================发送短信了===数据信息查询==="+importDTO.toString());
-                //发送短息
-                if("1".equals(importDTO.getAuditStage())){
-                    //审核阶段:   1:市级,2:省级
-                    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());
-                    }else {
-                        log.error("=========企业的组织机构代码:"+importDTO.getGyUnitId()+",查询不到对应的企业信息===========");
+            if("四川省".equals(this.sysProvince)){
+                //通过数据id,查询数据信息
+                GyDataImportDTO importDTO = gyDataDao.get(data.getId());
+                if(Objects.nonNull(importDTO)){
+                    log.error("=====================发送短信了===数据信息查询==="+importDTO.toString());
+                    //发送短息
+                    if("1".equals(importDTO.getAuditStage())){
+                        //审核阶段:   1:市级,2:省级
+                        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());
+                        }else {
+                            log.error("=========企业的组织机构代码:"+importDTO.getGyUnitId()+",查询不到对应的企业信息===========");
+                        }
                     }
+                }else {
+                    log.error("=========数据id:"+data.getId()+",查询不到对应的数据信息===========");
                 }
-            }else {
-                log.error("=========数据id:"+data.getId()+",查询不到对应的数据信息===========");
             }
         }
     }

+ 2 - 2
src/main/resources/application.yml

@@ -21,9 +21,9 @@ spring:
 #    开发环境
 #  active: dev
 #    测试环境
-   active: test
+#   active: test
 #    #生产环境
-#    active: prod
+    active: prod
   servlet:
     multipart:
       max-file-size: 30Mb