From aeee1bf576b087a22da91641e3993d41cef4efb0 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Mon, 31 Jul 2023 08:38:19 +0800 Subject: [PATCH] =?UTF-8?q?#=E4=BB=93=E5=BA=93=E7=AE=A1=E7=90=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hzims/operational/main/service/impl/WindHomeServiceImpl.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/WindHomeServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/WindHomeServiceImpl.java index cf2e745..55da5b5 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/WindHomeServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/WindHomeServiceImpl.java @@ -238,14 +238,7 @@ public class WindHomeServiceImpl implements WindHomeService { subordinate.setLgtd(station.getLgtd()); // 省市编码 String areaCode = station.getAreaCode(); - if (!StringUtil.isEmpty(areaCode)) { - String[] arrCode = areaCode.split(","); - subordinate.setAreaCode(arrCode[arrCode.length-1]); - R R = sysClient.getRegion(arrCode[1]); - if (R.isSuccess() && ObjectUtil.isNotEmpty(R.getData())) { - subordinate.setAreaName(R.getData().getName()); - } - } + subordinate.setAreaCode(areaCode); // 机构Id subordinate.setDepartId(entry.getKey().getId()); // 机构名称