From 7b141b3e81b17f0e55476dacd2f1ce3c57911336 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Fri, 18 Jul 2025 10:10:35 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1467468793479168]条件判断异常 http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/939050947543057/1467468793479168 --- src/main/java/neatlogic/framework/util/FormUtil.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/neatlogic/framework/util/FormUtil.java b/src/main/java/neatlogic/framework/util/FormUtil.java index d54a499ea..596954186 100644 --- a/src/main/java/neatlogic/framework/util/FormUtil.java +++ b/src/main/java/neatlogic/framework/util/FormUtil.java @@ -354,9 +354,14 @@ public class FormUtil { FormAttributeVo downwardFormAttributeVo = downwardFormAttributeMap.get(key); if (downwardFormAttributeVo != null) { IFormAttributeDataConversionHandler handler = FormAttributeDataConversionHandlerFactory.getHandler(downwardFormAttributeVo.getHandler()); - Object enhanceReadabilityValue = handler.getEnhanceReadabilityValue(value, downwardFormAttributeVo); - newRowObj.put(downwardFormAttributeVo.getKey(), enhanceReadabilityValue); - newRowObj.put(downwardFormAttributeVo.getLabel(), enhanceReadabilityValue); + if (handler != null) { + Object enhanceReadabilityValue = handler.getEnhanceReadabilityValue(value, downwardFormAttributeVo); + newRowObj.put(downwardFormAttributeVo.getKey(), enhanceReadabilityValue); + newRowObj.put(downwardFormAttributeVo.getLabel(), enhanceReadabilityValue); + } else { + newRowObj.put(downwardFormAttributeVo.getKey(), value); + newRowObj.put(downwardFormAttributeVo.getLabel(), value); + } } } dataList.add(newRowObj); -- Gitee