From 0ef4abeeeed7339d4e76992f3f785be10f851f23 Mon Sep 17 00:00:00 2001 From: yjz <3131811435@qq.com> Date: Mon, 29 Jan 2024 18:21:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=A0=87=E5=87=86):=20=E5=88=86=E6=A0=87?= =?UTF-8?q?=E5=A7=94=E5=8E=86=E5=8F=B2=E6=95=B0=E6=8D=AE=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../laws/common/service/impl/LawsCommonServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java index 80b0f8da..dce75db3 100644 --- a/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java @@ -467,7 +467,9 @@ public class LawsCommonServiceImpl implements ILawsCommonService { // 如果是分标委 LawsStandardization lawsStandardization = lawsStandardizationService.getById(value); resultMap.put(key, value); - resultMap.put(key + FieldCommon._DICT_TEXT, lawsStandardization.getName()); + if (!Objects.isNull(lawsStandardization)){ + resultMap.put(key + FieldCommon._DICT_TEXT, lawsStandardization.getName()); + } } else if (FieldCommon.PART_NAME.equals(key) && StringUtils.isNotBlank(value)) { // 如果是零部件 LambdaQueryWrapper partNameLambdaQueryWrapper = new LambdaQueryWrapper<>();