Commit aa3d5210 authored by suhuiguang's avatar suhuiguang

1.移转变更增加更新es的使用场所字段

parent f0da515d
......@@ -1153,6 +1153,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
String newUsePlaceCode = "";
String newAddress = "";
String newLongitudeLatitude = "";
String useSiteCode = "";
if (!ValidationUtil.isEmpty(newData)) {
JSONObject newPosition = JSON.parseObject(newData.getChangeData());
String province = newPosition.getString("transferProvince");
......@@ -1161,6 +1162,8 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
String street = newPosition.getString("transferStreet");
String address = newPosition.getString("transferAddress");
String longitudeLatitude = newPosition.getString("longitudeLatitude");
// 使用场所
useSiteCode = newPosition.getString("transferUsePlace");
// 分割省市区街道字段
if (!ObjectUtils.isEmpty(province)) {
String[] provinceList = province.split("_");
......@@ -1201,9 +1204,13 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
//es中的编号信息
Map<String, Map<String, Object>> resultMap = new HashMap<>();
Map<String, Object> map1 = new HashMap<>();
// es的使用地点信息名称、code、详情地址
map1.put("USE_PLACE", newUsePlace);
map1.put("ADDRESS", newAddress);
map1.put("USE_PLACE_CODE", newUsePlaceCode);
map1.put("ADDRESS", newAddress);
// es的使用场所
map1.put("USE_SITE_CODE", useSiteCode);
map1.put("LONGITUDE_LATITUDE", newLongitudeLatitude);
if (isUpdateRegistrationCode.get()) {
map1.put("EQU_STATE", "1");
......
......@@ -2382,6 +2382,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
*
* @param paramMap 更新的参数
*/
@Override
public Map<String, Object> commonUpdateEsDataByIds(Map<String, Map<String, Object>> paramMap) {
if (paramMap.isEmpty()) {
return null;
......
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