From c9eef762a23fabf7c05a460dc1cdc5aaca22e1c7 Mon Sep 17 00:00:00 2001
From: yujian <yujian>
Date: 星期二, 05 三月 2019 15:02:20 +0800
Subject: [PATCH] 抽奖规则代码优化

---
 fanli/src/main/java/com/yeshi/fanli/util/SpringContext.java |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/util/SpringContext.java b/fanli/src/main/java/com/yeshi/fanli/util/SpringContext.java
index a64a1f6..22eec15 100644
--- a/fanli/src/main/java/com/yeshi/fanli/util/SpringContext.java
+++ b/fanli/src/main/java/com/yeshi/fanli/util/SpringContext.java
@@ -30,6 +30,7 @@
 import com.yeshi.fanli.service.inter.push.IOSPushService;
 import com.yeshi.fanli.service.inter.user.ExtractService;
 import com.yeshi.fanli.service.inter.user.UserInfoService;
+import com.yeshi.fanli.service.inter.user.UserSystemCouponService;
 
 /**
  * 绯荤粺鍒濆鍖�
@@ -64,6 +65,9 @@
 	@Resource
 	private QualityFactoryService qualityFactoryService;
 
+	@Resource
+	private UserSystemCouponService userSystemCouponService;
+
 	private static boolean isInited = false;
 
 	public void onApplicationEvent(ContextRefreshedEvent arg0) {
@@ -90,6 +94,7 @@
 			doOrderTiChengFanLi();// 澶勭悊璁㈠崟鎻愭垚杩斿埄
 			doWeiQuanOrder();// 澶勭悊缁存潈璁㈠崟
 			doPushIOS();// 澶勭悊鍙戦�両OS娑堟伅
+			doThreeSaleUserCouponJob();// 澶勭悊閭�璇烽槦鍒�
 		} else if (!Constant.IS_TEST) {
 			initScheduler();// 鍚姩瀹氭椂浠诲姟
 			// doUpdateGoodsJob();
@@ -204,7 +209,7 @@
 									}
 								} catch (Exception e) {
 									try {
-										LogHelper.errorDetailInfo(e);
+										LogHelper.errorDetailInfo(e,"HongBaoV2-ID:"+map.get(handler).getId(),"");
 									} catch (Exception e1) {
 										e1.printStackTrace();
 									}
@@ -415,11 +420,9 @@
 										ThreeSale threeSale = map.get(key);
 										if (threeSale != null) {
 											if (threeSale.getState() != null && threeSale.getState() == true) {
-												// 閭�璇锋垚鍔�
-
-												// TODO 鍒告縺娲荤敓鏁�
-												// threeSale.getBoss().getId();
-
+												// 閭�璇锋垚鍔� - 鍒告縺娲荤敓鏁�
+												Long bossId = threeSale.getBoss().getId();
+												userSystemCouponService.activatedWelfareFreeCoupon(bossId);
 											}
 										}
 										ThreeSaleCMQManager.getInstance()

--
Gitblit v1.8.0