yaozhixue 1 年之前
父节点
当前提交
29f5581f1d

+ 4 - 2
src/main/java/com/zfire/jiasm/syncdata/service/impl/BaseDownServiceImpl.java

@@ -158,15 +158,17 @@ public class BaseDownServiceImpl implements BaseDownService {
 
                 JSONArray jsonArray = (JSONArray) jsonResult.getData();
                 if (jsonArray != null) {
-                    log.info("下载了{}条数据",jsonArray.size());
-
                     if (bc.equals(InterFaceTypeEnum.TBL_PROVINCE.getCode())){
+                        log.info("省信息下载了{}条数据",jsonArray.size());
                         provinceCityAreaTownService.extractedProvince(jsonArray);
                     } else if (bc.equals(InterFaceTypeEnum.TBL_CITY.getCode())){
+                        log.info("市信息下载了{}条数据",jsonArray.size());
                         provinceCityAreaTownService.extractedCity(jsonArray);
                     } else if (bc.equals(InterFaceTypeEnum.TBL_COUNTY.getCode())){
+                        log.info("区信息下载了{}条数据",jsonArray.size());
                         provinceCityAreaTownService.extractedCounty(jsonArray);
                     } else if (bc.equals(InterFaceTypeEnum.TBL_CITY_JDXZ.getCode())){
+                        log.info("乡镇信息下载了{}条数据",jsonArray.size());
                         provinceCityAreaTownService.extractedStreet(jsonArray);
                     }
                     jsonArray.clear();

+ 1 - 2
src/main/java/com/zfire/jiasm/syncdata/service/impl/ProvinceCityAreaTownServiceImpl.java

@@ -73,8 +73,7 @@ public class ProvinceCityAreaTownServiceImpl implements ProvinceCityAreaTownServ
         List<Long> oldRecCiid = new ArrayList<>();
         Map<Long, List<ItfTblCityDownload>> oldRecMap = new HashMap<>();
 
-
-                String synTaskNo = UUID.randomUUID().toString();
+        String synTaskNo = UUID.randomUUID().toString();
         // 提取现有的数据信息
         oldRec =  itfTblCityDownloadService.lambdaQuery().list();
         if (CollectionUtils.isNotEmpty(oldRec)){