From 372fa88d1d5a70ea823a9a3bf51a1b30e9c563db Mon Sep 17 00:00:00 2001 From: wyb <1977763549@qq.com> Date: Fri, 9 Jun 2023 08:13:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=9F=A5=E6=8A=A5=E5=91=8A=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E4=B9=9F=E5=AE=9E=E7=8E=B0=E9=98=BB=E5=A1=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HIP1009InspectionReportUpdatesHandler.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/docus/server/report/webservice/impl/HIP1009InspectionReportUpdatesHandler.java b/src/main/java/com/docus/server/report/webservice/impl/HIP1009InspectionReportUpdatesHandler.java index 5b10337..f037ae7 100644 --- a/src/main/java/com/docus/server/report/webservice/impl/HIP1009InspectionReportUpdatesHandler.java +++ b/src/main/java/com/docus/server/report/webservice/impl/HIP1009InspectionReportUpdatesHandler.java @@ -4,6 +4,7 @@ import com.docus.core.util.DateUtil; import com.docus.core.util.Func; import com.docus.infrastructure.core.exception.BaseException; import com.docus.server.report.api.dto.ReportDto; +import com.docus.server.report.config.SdRyReportHandledConfig; import com.docus.server.report.config.ZdAssortConfig; import com.docus.server.report.service.ReportService; import com.docus.server.report.util.IdUtil; @@ -38,9 +39,18 @@ public class HIP1009InspectionReportUpdatesHandler implements WebserviceReceiveS msgId = xmlUtil.getNode("/POOR_HIP1009/id/@extension").getNodeValue(); sender = xmlUtil.getNode("/POOR_HIP1009/sender/device/id/item/@extension").getNodeValue(); receiver = xmlUtil.getNode("/POOR_HIP1009/receiver/device/id/item/@extension").getNodeValue(); - + SdRyReportHandledConfig sdRyReportHandledConfig = new SdRyReportHandledConfig(); ReportDto reportDto = getReportDtoByInspectionUpdate(xmlUtil); - verifyReportDto(reportDto); + verifyFileInfo(reportDto); + String sysFlag = reportDto.getSysFlag(); + if (sdRyReportHandledConfig.isNotHandled(sysFlag)) { + return updateSuccess(msgId, sender, receiver); + } + if(sdRyReportHandledConfig.isBlocking(sysFlag)){ + reportDto.setDownUrl(null); + reportService.reportBuffer(reportDto); + return updateSuccess(msgId, sender, receiver); + } reportService.report(reportDto); return updateSuccess(msgId, sender, receiver); } catch (BaseException baseException) {