From 6cfdea618797f74bc0d98294b6f94ae40477393e Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Fri, 28 Feb 2025 10:29:43 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20=E5=B7=A1=E6=A3=80-?= =?UTF-8?q?=E6=9C=80=E6=96=B0=E9=97=AE=E9=A2=98=E5=AF=BC=E5=87=BA=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1365994327474176]巡检-最新问题导出异常 http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/939050947543057/1365994327474176 --- .../newproblem/InspectNewProblemReportSendEmailApi.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/neatlogic/module/inspect/api/newproblem/InspectNewProblemReportSendEmailApi.java b/src/main/java/neatlogic/module/inspect/api/newproblem/InspectNewProblemReportSendEmailApi.java index 0d7122b..bf1040f 100644 --- a/src/main/java/neatlogic/module/inspect/api/newproblem/InspectNewProblemReportSendEmailApi.java +++ b/src/main/java/neatlogic/module/inspect/api/newproblem/InspectNewProblemReportSendEmailApi.java @@ -1,9 +1,11 @@ package neatlogic.module.inspect.api.newproblem; +import com.alibaba.fastjson.JSONObject; import neatlogic.framework.asynchronization.thread.NeatLogicThread; import neatlogic.framework.asynchronization.threadpool.CachedThreadPool; import neatlogic.framework.auth.core.AuthAction; import neatlogic.framework.cmdb.crossover.ICiCrossoverMapper; +import neatlogic.framework.cmdb.crossover.IResourceCenterResourceCrossoverService; import neatlogic.framework.cmdb.crossover.IResourceCrossoverMapper; import neatlogic.framework.cmdb.dto.ci.CiVo; import neatlogic.framework.cmdb.dto.resourcecenter.ResourceSearchVo; @@ -22,8 +24,6 @@ import neatlogic.framework.restful.core.privateapi.PrivateApiComponentBase; import neatlogic.framework.service.UserService; import neatlogic.framework.util.EmailUtil; import neatlogic.module.inspect.service.InspectReportService; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; import org.apache.poi.ss.usermodel.Workbook; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -97,7 +97,8 @@ public class InspectNewProblemReportSendEmailApi extends PrivateApiComponentBase @ResubmitInterval(5) public Object myDoService(JSONObject paramObj) throws Exception { String title = paramObj.getString("title"); - ResourceSearchVo searchVo = JSON.toJavaObject(paramObj, ResourceSearchVo.class); + IResourceCenterResourceCrossoverService resourceCrossoverService = CrossoverServiceFactory.getApi(IResourceCenterResourceCrossoverService.class); + ResourceSearchVo searchVo = resourceCrossoverService.assembleResourceSearchVo(paramObj); Integer isNeedAlertDetail = paramObj.getInteger("isNeedAlertDetail"); if (isNeedAlertDetail == null) { isNeedAlertDetail = 0; -- Gitee