Commit 8f402f87 authored by tianbo's avatar tianbo

fix(jg): 修复设备认领历史登记逻辑(韩向青确认)

- 无主设备认领不区分是否有使用登记证号,都认领到企业未纳管设备列表里
parent 4bcf8308
...@@ -406,11 +406,11 @@ public class EquipClaimServiceImpl { ...@@ -406,11 +406,11 @@ public class EquipClaimServiceImpl {
// 认领到自己单位下 -> 已纳管设备列表 , + 历史设备登记 // 认领到自己单位下 -> 已纳管设备列表 , + 历史设备登记
// 认领 更新设备信息 // 认领 更新设备信息
this.updateEquipInfoWithClaim(equipInfo, equipParams, true); this.updateEquipInfoWithClaim(equipInfo, equipParams, false);
// 历史设备登记 // 历史设备登记
JgUseRegistration useRegistration = this.addHistoryEquipRegistration(equipInfo); // JgUseRegistration useRegistration = this.addHistoryEquipRegistration(equipInfo);
// 添加设备的业务履历 // 添加设备的业务履历
this.addEquipResume(equipInfo, BusinessTypeEnum.JG_EQUIP_CLAIM, useRegistration); this.addEquipResume(equipInfo, BusinessTypeEnum.JG_EQUIP_CLAIM, new JgUseRegistration());
} }
// 添加es中的使用单位信息 // 添加es中的使用单位信息
HashMap<String, Map<String, Object>> objMap = new HashMap<>(); HashMap<String, Map<String, Object>> objMap = new HashMap<>();
......
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