Commit 6b318c5e authored by 刘林's avatar 刘林

fix(jg):移装变更没有更新老索引

parent f2102a56
...@@ -1317,6 +1317,9 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang ...@@ -1317,6 +1317,9 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
String newAddress = ""; String newAddress = "";
String newLongitudeLatitude = ""; String newLongitudeLatitude = "";
String useSiteCode = ""; String useSiteCode = "";
//es中的编号信息
Map<String, Map<String, Object>> resultMap = new HashMap<>();
Map<String, Object> map1 = new HashMap<>();
if (!ValidationUtil.isEmpty(newData)) { if (!ValidationUtil.isEmpty(newData)) {
JSONObject newPosition = JSON.parseObject(newData.getChangeData()); JSONObject newPosition = JSON.parseObject(newData.getChangeData());
String province = newPosition.getString("transferProvince"); String province = newPosition.getString("transferProvince");
...@@ -1327,6 +1330,14 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang ...@@ -1327,6 +1330,14 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
String longitudeLatitude = newPosition.getString("longitudeLatitude"); String longitudeLatitude = newPosition.getString("longitudeLatitude");
// 使用场所 // 使用场所
useSiteCode = newPosition.getString("transferUsePlace"); useSiteCode = newPosition.getString("transferUsePlace");
// es的使用地点信息名称、code、详情地址
String orgBranchCodeName = newPosition.getString("orgBranchCode");
String orgBranchName = newPosition.getString("orgBranchName");
String[] orgBranchArray = orgBranchCodeName.split("_");
if (orgBranchArray.length > 1) {
map1.put("ORG_BRANCH_CODE", orgBranchArray[0]);
map1.put("ORG_BRANCH_NAME", StringUtil.isNotEmpty(orgBranchName) ? orgBranchName : orgBranchArray[1]);
}
// 分割省市区街道字段 // 分割省市区街道字段
if (!ObjectUtils.isEmpty(province)) { if (!ObjectUtils.isEmpty(province)) {
String[] provinceList = province.split("_"); String[] provinceList = province.split("_");
...@@ -1364,10 +1375,6 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang ...@@ -1364,10 +1375,6 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
newLongitudeLatitude = longitudeLatitude; newLongitudeLatitude = longitudeLatitude;
} }
} }
//es中的编号信息
Map<String, Map<String, Object>> resultMap = new HashMap<>();
Map<String, Object> map1 = new HashMap<>();
// es的使用地点信息名称、code、详情地址
map1.put("USE_PLACE", newUsePlace); map1.put("USE_PLACE", newUsePlace);
map1.put("USE_PLACE_CODE", newUsePlaceCode); map1.put("USE_PLACE_CODE", newUsePlaceCode);
map1.put("ADDRESS", newAddress); map1.put("ADDRESS", newAddress);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment