From cbe9871d77e3586015f26d7e7c78d254bb8ec6f6 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 19 七月 2019 17:25:55 +0800
Subject: [PATCH] 增加订单灰度测试代码

---
 fanli/src/main/java/com/yeshi/fanli/job/UpdateDaTaoKeJob.java |   57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 56 insertions(+), 1 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/job/UpdateDaTaoKeJob.java b/fanli/src/main/java/com/yeshi/fanli/job/UpdateDaTaoKeJob.java
index 6c7e375..71546a4 100644
--- a/fanli/src/main/java/com/yeshi/fanli/job/UpdateDaTaoKeJob.java
+++ b/fanli/src/main/java/com/yeshi/fanli/job/UpdateDaTaoKeJob.java
@@ -35,7 +35,7 @@
 
 	@Resource
 	private DaTaoKeGoodsDetailService daTaoKeGoodsService;
-	
+
 	@Resource
 	private DaTaoKeGoodsDetailV2Service daTaoKeGoodsDetailV2Service;
 
@@ -126,4 +126,59 @@
 		}
 	}
 
+	@Scheduled(cron = "0 0/10 * * * ? ")
+	public void doUpdateJobNew() {
+		if (!Constant.IS_TASK)
+			return;
+		try {
+			new Thread(new Runnable() {
+
+				@Override
+				public void run() {
+					daTaoKeGoodsDetailV2Service.updateNewGoods();
+				}
+			}).start();
+
+		} catch (Exception e) {
+			LogHelper.errorDetailInfo(e);
+		}
+	}
+
+	@Scheduled(cron = "0 0/10 * * * ? ")
+	public void doDeleteJobNew() {
+		if (!Constant.IS_TASK)
+			return;
+		try {
+			new Thread(new Runnable() {
+
+				@Override
+				public void run() {
+					daTaoKeGoodsDetailV2Service.deleteInvalid();
+				}
+			}).start();
+
+		} catch (Exception e) {
+			LogHelper.errorDetailInfo(e);
+		}
+	}
+
+	// 姣忓ぉ鐨�8鐐癸紝11鐐癸紝19鐐癸紝23鐐规墽琛屼竴娆�
+	@Scheduled(cron = "0 0 8,11,19,23 * * ? ")
+	public void doUpdateInfoJobNew() {
+		if (!Constant.IS_TASK)
+			return;
+		try {
+			new Thread(new Runnable() {
+
+				@Override
+				public void run() {
+					daTaoKeGoodsDetailV2Service.updateData();
+				}
+			}).start();
+
+		} catch (Exception e) {
+			LogHelper.errorDetailInfo(e);
+		}
+	}
+
 }

--
Gitblit v1.8.0