|
|
|
@ -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<Region> 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()); |
|
|
|
|
// 机构名称
|
|
|
|
|