Commit bd626199 authored by 韩桐桐's avatar 韩桐桐

fix(jg):管道使用登记校验检验检测信息

parent 6e47ab49
...@@ -688,13 +688,14 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD ...@@ -688,13 +688,14 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
.collect(Collectors.toList()) .collect(Collectors.toList())
); );
// if (!CylinderTypeEnum.CYLINDER.getCode().equals(map.get("EQU_CATEGORY_CODE")) && // 工业管道校验检验检测信息
// (inspectionDetectionInfoList.isEmpty() || inspectionDetectionInfoList.stream().anyMatch(info -> if (!CylinderTypeEnum.CYLINDER.getCode().equals(map.get("EQU_CATEGORY_CODE")) &&
// ObjectUtils.isEmpty(info) || ObjectUtils.isEmpty(info.getInspectType()) || (inspectionDetectionInfoList.isEmpty() || inspectionDetectionInfoList.stream().anyMatch(info ->
// ObjectUtils.isEmpty(info.getInspectConclusion()) || ObjectUtils.isEmpty(info.getInspectOrgCode()) || ObjectUtils.isEmpty(info) || ObjectUtils.isEmpty(info.getInspectType()) ||
// ObjectUtils.isEmpty(info.getInspectOrgName())))) { ObjectUtils.isEmpty(info.getInspectConclusion()) || ObjectUtils.isEmpty(info.getInspectOrgCode()) ||
// throw new BadRequest("请补充设备检验检测信息后提交!"); ObjectUtils.isEmpty(info.getInspectOrgName())))) {
// } throw new BadRequest("请补充设备检验检测信息后提交!");
}
JgUseRegistration useRegistration = JSON.parseObject(JSON.toJSONString(map), JgUseRegistration.class); JgUseRegistration useRegistration = JSON.parseObject(JSON.toJSONString(map), JgUseRegistration.class);
useRegistration.setRegDate(new Date()); useRegistration.setRegDate(new Date());
......
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