Commit 9f68b5a3 authored by 刘林's avatar 刘林

fix(jg):使用登记去掉校验检验信息

parent 1376b0af
...@@ -875,14 +875,14 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD ...@@ -875,14 +875,14 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
.collect(toSet()) .collect(toSet())
: Collections.emptySet(); : Collections.emptySet();
if (EquipmentClassifityEnum.YLGD.getCode().equals(equListCode) && !CollectionUtils.isEmpty(equipmentLists)) { /*if (EquipmentClassifityEnum.YLGD.getCode().equals(equListCode) && !CollectionUtils.isEmpty(equipmentLists)) {
equipmentLists.forEach(equip -> { equipmentLists.forEach(equip -> {
if ((equip.get("inspectReportNo") == null || equip.get("inspectReportNo").toString().isEmpty()) || if ((equip.get("inspectReportNo") == null || equip.get("inspectReportNo").toString().isEmpty()) ||
(equip.get("inspectOrgCode") == null || equip.get("inspectOrgCode").toString().isEmpty())) { (equip.get("inspectOrgCode") == null || equip.get("inspectOrgCode").toString().isEmpty())) {
throw new BadRequest("检验信息不能为空,请完善检验信息后进行登记!"); throw new BadRequest("检验信息不能为空,请完善检验信息后进行登记!");
} }
}); });
} }*/
List<Map<String, Object>> filteredEquipmentLists = Optional.ofNullable(equipmentLists) List<Map<String, Object>> filteredEquipmentLists = Optional.ofNullable(equipmentLists)
.orElse(Collections.emptyList()) .orElse(Collections.emptyList())
......
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