Commit 4bd40650 authored by 韩桐桐's avatar 韩桐桐

fix(jg):车用气瓶使用地址,使用单位为个人时查询地址问题

parent 0c41750a
...@@ -42,16 +42,15 @@ ...@@ -42,16 +42,15 @@
AND is_delete = 0 AND is_delete = 0
</select> </select>
<select id="getEnterpriseInfo" resultType="java.util.Map"> <select id="getEnterpriseInfo" resultType="java.util.Map">
SELECT sequence_nbr sequenceNbr, SELECT sequence_nbr as sequenceNbr,
supervise_org_code superviseOrgCode, supervise_org_code as superviseOrgCode,
supervise_org_name superviseOrgName, supervise_org_name as superviseOrgName,
use_code useCode, use_code as useCode,
use_unit useUnit, use_unit as useUnit,
address address as address
FROM tz_base_enterprise_info FROM tz_base_enterprise_info
WHERE use_code = #{useCode} WHERE use_unit_code = #{useCode}
AND is_delete = '0' AND is_delete = '0' limit 1
limit 1;
</select> </select>
<select id="getEnterpriseEmployee" resultType="java.util.Map"> <select id="getEnterpriseEmployee" resultType="java.util.Map">
SELECT SELECT
......
...@@ -648,13 +648,8 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform ...@@ -648,13 +648,8 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
// 更新设备信息 // 更新设备信息
this.updateEquipMessage(jgVehicleInformation, mapData, registerInfo, otherInfo); this.updateEquipMessage(jgVehicleInformation, mapData, registerInfo, otherInfo);
// 使用信息
LambdaQueryWrapper<IdxBizJgUseInfo> lambdaUseInfo = new QueryWrapper<IdxBizJgUseInfo>().lambda();
lambdaUseInfo.eq(IdxBizJgUseInfo::getRecord, String.valueOf(mapData.get("record")));
IdxBizJgUseInfo useInfo = useInfoMapper.selectOne(lambdaUseInfo);
String usePlace = useInfo.getProvinceName() + "/" + useInfo.getCityName() + "/" + useInfo.getCountyName() + useInfo.getStreetName();
// 更新es // 更新es
updateEsData(usePlace, mapData, jgVehicleInformation, otherInfo); updateEsData(mapData, jgVehicleInformation, otherInfo);
} }
// 更新代办状态 // 更新代办状态
...@@ -673,7 +668,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform ...@@ -673,7 +668,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
this.getBaseMapper().updateById(jgVehicleInformation); this.getBaseMapper().updateById(jgVehicleInformation);
} }
public void updateEsData(String usePlace, JSONObject dataMap, JgVehicleInformation jgVehicleInformation, IdxBizJgOtherInfo otherInfo) { public void updateEsData(JSONObject dataMap, JgVehicleInformation jgVehicleInformation, IdxBizJgOtherInfo otherInfo) {
// 更新es // 更新es
HashMap<String, Map<String, Object>> objMap = new HashMap<>(); HashMap<String, Map<String, Object>> objMap = new HashMap<>();
HashMap<String, Object> param = new HashMap<>(); HashMap<String, Object> param = new HashMap<>();
...@@ -681,7 +676,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform ...@@ -681,7 +676,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
param.put("USE_UNIT_CREDIT_CODE", dataMap.get("useUnitCreditCode")); param.put("USE_UNIT_CREDIT_CODE", dataMap.get("useUnitCreditCode"));
param.put("USE_UNIT_NAME", dataMap.get("useUnitName")); param.put("USE_UNIT_NAME", dataMap.get("useUnitName"));
param.put("ADDRESS", dataMap.getOrDefault("address", "")); param.put("ADDRESS", dataMap.getOrDefault("address", ""));
param.put("USE_PLACE", usePlace); param.put("USE_PLACE", jgVehicleInformation.getUseUnitAddress());
param.put("STATUS", "已认领"); param.put("STATUS", "已认领");
param.put("EQU_STATE", 1); param.put("EQU_STATE", 1);
param.put("ORG_BRANCH_CODE", jgVehicleInformation.getOrgBranchCode()); param.put("ORG_BRANCH_CODE", jgVehicleInformation.getOrgBranchCode());
......
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