From 30d8e227e8d823b6c38c3b9c90ac2df03b63befe Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 25 二月 2025 16:41:22 +0800
Subject: [PATCH] 淘宝转链接口更新

---
 fanli/src/main/java/com/yeshi/fanli/job/UserSystemCouponJob.java |  148 ++++++++++++++++++++++++------------------------
 1 files changed, 74 insertions(+), 74 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/job/UserSystemCouponJob.java b/fanli/src/main/java/com/yeshi/fanli/job/UserSystemCouponJob.java
index eb42451..5fb092b 100644
--- a/fanli/src/main/java/com/yeshi/fanli/job/UserSystemCouponJob.java
+++ b/fanli/src/main/java/com/yeshi/fanli/job/UserSystemCouponJob.java
@@ -1,74 +1,74 @@
-package com.yeshi.fanli.job;
-
-import java.util.List;
-
-import javax.annotation.Resource;
-
-import org.springframework.scheduling.annotation.Scheduled;
-import org.springframework.stereotype.Component;
-
-import com.yeshi.fanli.entity.bus.user.UserSystemCoupon;
-import com.yeshi.fanli.entity.bus.user.UserSystemCouponGiveRecord;
-import com.yeshi.fanli.log.LogHelper;
-import com.yeshi.fanli.service.inter.user.UserSystemCouponGiveRecordService;
-import com.yeshi.fanli.service.inter.user.UserSystemCouponService;
-import com.yeshi.fanli.util.Constant;
-
-@Component
-public class UserSystemCouponJob {
-
-	@Resource
-	private UserSystemCouponGiveRecordService userSystemCouponGiveRecordService;
-	
-	@Resource
-	private UserSystemCouponService userSystemCouponService;
-	
-	/**
-	 * 姣忓ぉ涓�涓皬鏃舵洿鏂板埜
-	 */
-	@Scheduled(cron = "0 0 0/1 * * ? ")
-	public void updateCouponInfo() {
-		if (!Constant.IS_TASK)
-			return;
-		
-		// 1銆佽禒閫侀��鍥炲埜
-		giveSendBack();
-		
-		// 2銆佸埜澶辨晥
-		updateInvalid();
-	}
-	
-	/**
-	 * 璧犻�侀��鍥炲埜
-	 */
-	public void giveSendBack() {
-		try {
-			for (int i = 0; i < 100; i++) {
-				List<UserSystemCouponGiveRecord> overdueList = userSystemCouponGiveRecordService.overdueList(500);
-				if (overdueList == null || overdueList.size() == 0) {
-					break;
-				}
-				userSystemCouponService.sendBackGiveCoupon(overdueList);
-			}
-		} catch (Exception e) {
-			LogHelper.errorDetailInfo(e);
-		}
-	}
-	
-	/**
-	 * 鏇存柊鍒稿け鏁�
-	 */
-	public void updateInvalid() {
-		try {
-			for (int i = 0; i < 100; i++) {
-				List<UserSystemCoupon> list = userSystemCouponService.getCounponNowInvalid(500);
-				if (list == null || list.size() == 0) {
-					break;
-				}
-				userSystemCouponService.updateCounponInvalid(list);
-			}
-		} catch (Exception e) {
-			LogHelper.errorDetailInfo(e);
-		}
-	}
-}
+package com.yeshi.fanli.job;
+
+import java.util.List;
+
+import javax.annotation.Resource;
+
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Component;
+
+import com.yeshi.fanli.entity.bus.user.UserSystemCoupon;
+import com.yeshi.fanli.entity.bus.user.UserSystemCouponGiveRecord;
+import com.yeshi.fanli.log.LogHelper;
+import com.yeshi.fanli.service.inter.user.UserSystemCouponGiveRecordService;
+import com.yeshi.fanli.service.inter.user.UserSystemCouponService;
+import com.yeshi.fanli.util.Constant;
+
+@Component
+public class UserSystemCouponJob {
+
+	@Resource
+	private UserSystemCouponGiveRecordService userSystemCouponGiveRecordService;
+	
+	@Resource
+	private UserSystemCouponService userSystemCouponService;
+	
+	/**
+	 * 姣忓ぉ涓�涓皬鏃舵洿鏂板埜
+	 */
+	@Scheduled(cron = "0 0 0/1 * * ? ")
+	public void updateCouponInfo() {
+		if (!Constant.IS_TASK)
+			return;
+		
+		// 1銆佽禒閫侀��鍥炲埜
+		giveSendBack();
+		
+		// 2銆佸埜澶辨晥
+		updateInvalid();
+	}
+	
+	/**
+	 * 璧犻�侀��鍥炲埜
+	 */
+	public void giveSendBack() {
+		try {
+			for (int i = 0; i < 100; i++) {
+				List<UserSystemCouponGiveRecord> overdueList = userSystemCouponGiveRecordService.overdueList(500);
+				if (overdueList == null || overdueList.size() == 0) {
+					break;
+				}
+				userSystemCouponService.sendBackGiveCoupon(overdueList);
+			}
+		} catch (Exception e) {
+			LogHelper.errorDetailInfo(e);
+		}
+	}
+	
+	/**
+	 * 鏇存柊鍒稿け鏁�
+	 */
+	public void updateInvalid() {
+		try {
+			for (int i = 0; i < 100; i++) {
+				List<UserSystemCoupon> list = userSystemCouponService.getCounponNowInvalid(500);
+				if (list == null || list.size() == 0) {
+					break;
+				}
+				userSystemCouponService.updateCounponInvalid(list);
+			}
+		} catch (Exception e) {
+			LogHelper.errorDetailInfo(e);
+		}
+	}
+}

--
Gitblit v1.8.0