From a491941cece9a90d72c9c6b0aab0e718e39dbd3c Mon Sep 17 00:00:00 2001
From: zhongrj <123456>
Date: Mon, 22 Aug 2022 15:54:22 +0800
Subject: [PATCH] 从业记录新增同步sql 修改,用户新增审查逻辑修改,外网部门只更新状态,不更新审查明细,内网状态和明细都更新

---
 src/main/java/org/springblade/modules/performance/controller/PerformanceController.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/springblade/modules/performance/controller/PerformanceController.java b/src/main/java/org/springblade/modules/performance/controller/PerformanceController.java
index 7c04ad9..6a18658 100644
--- a/src/main/java/org/springblade/modules/performance/controller/PerformanceController.java
+++ b/src/main/java/org/springblade/modules/performance/controller/PerformanceController.java
@@ -31,6 +31,7 @@
 import org.springblade.modules.performance.entity.Performance;
 import org.springblade.modules.performance.service.IPerformanceService;
 import org.springblade.modules.performance.vo.PerformanceVO;
+import org.springblade.modules.system.service.MyAsyncService;
 import org.springframework.web.bind.annotation.*;
 
 import javax.validation.Valid;
@@ -50,7 +51,7 @@
 public class PerformanceController extends BladeController {
 
 	private final IPerformanceService performanceService;
-
+	private final MyAsyncService myAsyncService;
 	/**
 	 * 详情
 	 */
@@ -99,7 +100,8 @@
 				"'" + performance.getAchievements() + "'" + "," +
 				"'" + new SimpleDateFormat("yyyy-MM-dd").format(performance.getTime()) + "'" + "," +
 				"'" + performance.getScore() + "'" + ")";
-		FtpUtil.sqlFileUpload(s1);
+		//FtpUtil.sqlFileUpload(s1);
+		myAsyncService.dataSync(s1);
 		return R.status(save);
 	}
 
@@ -117,7 +119,8 @@
 			",time = " + "'" + new SimpleDateFormat("yyyy-MM-dd").format(performance.getTime()) + "'" +
 			",score = " + "'" + performance.getScore() + "'" +
 			" " + "where id = " + "'" + performance.getId() + "'";
-		FtpUtil.sqlFileUpload(s1);
+		//FtpUtil.sqlFileUpload(s1);
+		myAsyncService.dataSync(s1);
 		return R.status(b);
 	}
 

--
Gitblit v1.9.3