From 62654cb7d3e23074278c7c061bef8f6cbee90d73 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 10 十一月 2023 09:48:21 +0800
Subject: [PATCH] 修改历史数据导入时限制单次导入通过配置做限制,开启多线程分批并行执行insert,注解开启事务回滚失效,对象方式开启事务实现手动提交事务,异常回滚事务

---
 Source/UBCS/ubcs-ops/ubcs-log/src/main/java/com/vci/ubcs/core/log/controller/LogSystemController.java |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/Source/UBCS/ubcs-ops/ubcs-log/src/main/java/com/vci/ubcs/core/log/controller/LogSystemController.java b/Source/UBCS/ubcs-ops/ubcs-log/src/main/java/com/vci/ubcs/core/log/controller/LogSystemController.java
index fdc11c8..e4e5ddc 100644
--- a/Source/UBCS/ubcs-ops/ubcs-log/src/main/java/com/vci/ubcs/core/log/controller/LogSystemController.java
+++ b/Source/UBCS/ubcs-ops/ubcs-log/src/main/java/com/vci/ubcs/core/log/controller/LogSystemController.java
@@ -1,9 +1,17 @@
 package com.vci.ubcs.core.log.controller;
 
+import com.vci.ubcs.core.log.service.ILogSystemService;
+import com.vci.ubcs.log.entity.SystemLog;
 import lombok.AllArgsConstructor;
 import org.springblade.core.tenant.annotation.NonDS;
+import org.springblade.core.tool.api.R;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
 
 /**
  * 鏈湴绯荤粺鏃ュ織
@@ -12,10 +20,18 @@
  */
 @NonDS
 @RestController
-@AllArgsConstructor
+//@AllArgsConstructor
 @RequestMapping("/systemLog")
 public class LogSystemController {
 
+	@Autowired
+	private ILogSystemService logSystemService;
+
+	@GetMapping("/lazy-list")
+	private R<List<SystemLog>> getSystemLogList(@RequestParam String serviceName){
+ 		return R.data(logSystemService.getSystemLogList(serviceName));
+	}
+
 
 
 

--
Gitblit v1.9.3