From 273b1daa26477aca17631d3f0e25b564e3a9e395 Mon Sep 17 00:00:00 2001 From: MrZhai Date: Mon, 7 Mar 2022 18:09:09 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=89=B9=E9=87=8F=E5=AF=BC=E5=85=A5json?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=BC=82=E6=AD=A5?= =?UTF-8?q?=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/basic/impl/UdiInfoImportDetailServiceImpl.java | 2 ++ .../java/com/glxp/api/admin/thread/BasicCorpImportService.java | 1 + 2 files changed, 3 insertions(+) diff --git a/api-admin/src/main/java/com/glxp/api/admin/service/basic/impl/UdiInfoImportDetailServiceImpl.java b/api-admin/src/main/java/com/glxp/api/admin/service/basic/impl/UdiInfoImportDetailServiceImpl.java index bf54beda..9f681962 100644 --- a/api-admin/src/main/java/com/glxp/api/admin/service/basic/impl/UdiInfoImportDetailServiceImpl.java +++ b/api-admin/src/main/java/com/glxp/api/admin/service/basic/impl/UdiInfoImportDetailServiceImpl.java @@ -9,6 +9,7 @@ import com.glxp.api.admin.entity.basic.UdiInfoImportDetailEntity; import com.glxp.api.admin.req.basic.FilterUdiIpLogRequest; import com.glxp.api.admin.res.basic.UdiRelevanceExportJsonResponse; import com.glxp.api.admin.service.basic.UdiInfoImportDetailService; +import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; import javax.annotation.Resource; @@ -66,6 +67,7 @@ public class UdiInfoImportDetailServiceImpl implements UdiInfoImportDetailServic } @Override + @Async public void importJsonData(UdiRelevanceExportJsonResponse udiRelevanceExportJsonResponse) { if (CollUtil.isNotEmpty(udiRelevanceExportJsonResponse.getUdiInfoEntities())) { udiInfoDao.importUdiInfo(udiRelevanceExportJsonResponse.getUdiInfoEntities()); diff --git a/api-admin/src/main/java/com/glxp/api/admin/thread/BasicCorpImportService.java b/api-admin/src/main/java/com/glxp/api/admin/thread/BasicCorpImportService.java index 1bcbd768..64ff55d6 100644 --- a/api-admin/src/main/java/com/glxp/api/admin/thread/BasicCorpImportService.java +++ b/api-admin/src/main/java/com/glxp/api/admin/thread/BasicCorpImportService.java @@ -75,6 +75,7 @@ public class BasicCorpImportService { * * @param basicUnitMaintainEntities */ + @Async public void importJsonData(List basicUnitMaintainEntities) { if (CollUtil.isNotEmpty(basicUnitMaintainEntities)) { try {