From b63cc5c46404ba8c149f9f7527e9af11e0b44360 Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期三, 16 十月 2019 18:02:21 +0800
Subject: [PATCH] 淘礼金获得 + 赠送 + 相关活动清理

---
 fanli/src/main/java/com/yeshi/fanli/job/TaoLiJinJob.java |   61 ------------------------------
 1 files changed, 0 insertions(+), 61 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/job/TaoLiJinJob.java b/fanli/src/main/java/com/yeshi/fanli/job/TaoLiJinJob.java
index 70c9777..b477681 100644
--- a/fanli/src/main/java/com/yeshi/fanli/job/TaoLiJinJob.java
+++ b/fanli/src/main/java/com/yeshi/fanli/job/TaoLiJinJob.java
@@ -10,7 +10,6 @@
 import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
 
-import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinGiveRecord;
 import com.yeshi.fanli.entity.taobao.ShareHotGoods;
 import com.yeshi.fanli.entity.taobao.TLJBuyGoods;
 import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
@@ -55,39 +54,7 @@
 	@Resource
 	private UserTaoLiJinOriginService userTaoLiJinOriginService;
 
-	/**
-	 * 鏇存柊鎶ュ憡
-	 */
-	@Scheduled(cron = "0 0 1,10 * * ?")
-	public void insetDynamicInfo() {
 
-		if (!Constant.IS_TASK) {
-			return;
-		}
-
-		try {
-			userTaoLiJinReportService.needUpdateReport();
-		} catch (Exception e) {
-			LogHelper.errorDetailInfo(e);
-		}
-	}
-
-	/**
-	 * 閫�鍥炶秴杩�3澶╂棤棰嗗彇鐨勬窐绀奸噾
-	 */
-	@Scheduled(cron = "0 0 1 * * ?")
-	public void refundNotWin() {
-
-		if (!Constant.IS_TASK) {
-			return;
-		}
-
-		try {
-			userTaoLiJinReportService.refundNotWin();
-		} catch (Exception e) {
-			LogHelper.errorDetailInfo(e);
-		}
-	}
 
 	/**
 	 * 姣忓ぉ鍑屾櫒杩�5鍒嗛挓楠岃瘉
@@ -204,32 +171,4 @@
 		addTLJBuyGoods(list, day);
 	}
 
-	/**
-	 * 姣�2涓皬鏃� 璧犻�侀��鍥炲凡杩囨湡娣樼ぜ閲�
-	 */
-	@Scheduled(cron = "0 0 0/2 * * ? ")
-	public void giveSendBack() {
-		if (!Constant.IS_TASK)
-			return;
-
-		for (int i = 0; i < 100; i++) {
-			List<UserTaoLiJinGiveRecord> overdueList = userTaoLiJinGiveRecordService.overdueList(500);
-			if (overdueList == null || overdueList.size() == 0) {
-				break;
-			}
-
-			for (UserTaoLiJinGiveRecord record : overdueList) {
-				try {
-					userTaoLiJinOriginService.giveSendBack(record.getGiveUid(), record);
-					// 鏇存柊璁板綍
-					UserTaoLiJinGiveRecord updateRecord = new UserTaoLiJinGiveRecord();
-					updateRecord.setId(record.getId());
-					updateRecord.setState(UserTaoLiJinGiveRecord.STATE_OVERDUE);
-					userTaoLiJinGiveRecordService.updateByPrimaryKeySelective(updateRecord);
-				} catch (Exception e) {
-					e.printStackTrace();
-				}
-			}
-		}
-	}
 }

--
Gitblit v1.8.0