From 63441779293b94e79f8611c4f25ef34c5ce4e23f Mon Sep 17 00:00:00 2001 From: wxyclub Date: Thu, 30 Nov 2023 14:28:31 +0800 Subject: [PATCH] =?UTF-8?q?bug:=2078302=E5=86=85=E5=A4=96=E9=83=A8?= =?UTF-8?q?=E4=BC=9A=E8=AE=AE=EF=BC=8C=E6=94=BF=E7=AD=96=E6=B3=95=E8=A7=84?= =?UTF-8?q?=E8=B5=84=E6=96=99=E4=BF=AE=E6=94=B9=E8=AE=B0=E5=BD=95=E5=A4=84?= =?UTF-8?q?=E7=90=86null=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/InsideOutsideMeetingServiceImpl.java | 16 ++++-- .../impl/SarLawsInformationServiceImpl.java | 52 +++++++++---------- 2 files changed, 39 insertions(+), 29 deletions(-) diff --git a/adc-da-slrs/src/main/java/com/adc/da/slrs/InsideOntSideMeeting/service/impl/InsideOutsideMeetingServiceImpl.java b/adc-da-slrs/src/main/java/com/adc/da/slrs/InsideOntSideMeeting/service/impl/InsideOutsideMeetingServiceImpl.java index 5b163a30..63b64bb0 100644 --- a/adc-da-slrs/src/main/java/com/adc/da/slrs/InsideOntSideMeeting/service/impl/InsideOutsideMeetingServiceImpl.java +++ b/adc-da-slrs/src/main/java/com/adc/da/slrs/InsideOntSideMeeting/service/impl/InsideOutsideMeetingServiceImpl.java @@ -561,7 +561,7 @@ public class InsideOutsideMeetingServiceImpl extends ServiceImpl typeNameList = new ArrayList<>(); -// if (StringUtils.isNotBlank(newValue)) { -// for (String type : newValue.split(",")) { -// if (StringUtils.isNotBlank(type)) { -// typeNameList.add(dicTypeService.getDicTypeNameByDicCode(type)); -// } -// } -// } -// // 获取资料类型名称 -// String fieldName = field.getName().substring(0, 1).toUpperCase() + field.getName().substring(1); -// Method method = SarLawsInformation.class.getMethod("get" + fieldName + "Name"); -// Object oldTypeName = method.invoke(oldInfo); -// ApiModelProperty annotationsByType = field.getAnnotationsByType(ApiModelProperty.class)[0]; -// changes.add(annotationsByType.value() + "由\"" + oldTypeName + "\"改为\"" + String.join(",", typeNameList) + "\""); -// break; -// } case "informationFile": { List fileNameList = new ArrayList<>(); - if (StringUtils.isNotBlank(newValue)) { - String[] split = newValue.split(","); + String oldValueStr = String.valueOf(field.get(oldInfo)); + String newValueStr = String.valueOf(field.get(newInfo)); + if (StringUtils.isNotBlank(newValueStr)) { + String[] split = newValueStr.split(","); for (String attId : split) { AttFileEO fileInfo = attFileEOService.getFileInfo(attId); fileNameList.add(fileInfo.getOldFileName()); @@ -675,14 +665,24 @@ public class SarLawsInformationServiceImpl extends ServiceImpl