From 2e0c2025f430623b66c950f022dae05eb9d17e15 Mon Sep 17 00:00:00 2001
From: admin <2780501319@qq.com>
Date: 星期五, 27 九月 2019 00:07:21 +0800
Subject: [PATCH] 测试代码添加

---
 fanli/src/main/java/com/yeshi/fanli/util/SpringContext.java |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 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 1553e7c..7e9c422 100644
--- a/fanli/src/main/java/com/yeshi/fanli/util/SpringContext.java
+++ b/fanli/src/main/java/com/yeshi/fanli/util/SpringContext.java
@@ -173,10 +173,9 @@
 			doPDDOrderJob();// 鎷煎澶氳鍗曞鐞�
 			doImportantTaoBaoGoodsUpdateJob();// 娣樺疂閲嶈鍟嗗搧鐨勪俊鎭洿鏂�
 			doHongBaoRecieveIntegralGetJob();// 杩斿埄鍒拌处锛岄噾甯佸鍔�
-			doPlaceOrderIntegralJob();// 涓嬪崟璧犻�侀噾甯佷换鍔�
+			// doPlaceOrderIntegralJob();// 涓嬪崟璧犻�侀噾甯佷换鍔�
 			doDouYinDeviceActiveJob();// 鎶栭煶璁惧婵�娲诲箍鍛婄洃娴�
 		}
-
 	}
 
 	/**
@@ -855,15 +854,15 @@
 											integralTaskRecordService.firstRebateOrderRewardBoss(boss.getId(),
 													order.getUserInfo().getId(), null);
 										}
-									}
 
-									boss = threeSaleSerivce.getBoss(boss.getId());
-									if (boss != null) {// 鍒ゆ柇涓婄骇鐨勭孩鍖�
-										if (hongBaoMoney.get(boss.getId()) == null
-												|| hongBaoMoney.get(boss.getId()).compareTo(new BigDecimal("0")) <= 0) {
-											// 琛ュ伩閲戝竵2绾�
-											integralTaskRecordService.firstRebateOrderRewardBossSuper(boss.getId(),
-													order.getUserInfo().getId(), null);
+										boss = threeSaleSerivce.getBoss(boss.getId());
+										if (boss != null) {// 鍒ゆ柇涓婄骇鐨勭孩鍖�
+											if (hongBaoMoney.get(boss.getId()) == null || hongBaoMoney.get(boss.getId())
+													.compareTo(new BigDecimal("0")) <= 0) {
+												// 琛ュ伩閲戝竵2绾�
+												integralTaskRecordService.firstRebateOrderRewardBossSuper(boss.getId(),
+														order.getUserInfo().getId(), null);
+											}
 										}
 									}
 								}
@@ -909,9 +908,11 @@
 
 	// 鎶栭煶
 	public void doDouYinDeviceActiveJob() {
+		LogHelper.test("寮�濮嬫墽琛�:doDouYinDeviceActiveJob");
 		executor.execute(new Runnable() {
 			@Override
 			public void run() {
+				LogHelper.test("寮�濮嬫墽琛�:doDouYinDeviceActiveJob-run");
 				while (true) {
 					Map<String, DouYinDeviceActiveQueueDTO> map = DouYinDeviceActiveCMQManager.getInstance()
 							.consume(16);
@@ -946,7 +947,7 @@
 								if (active.getPlatform() == 1) {
 									DeviceActive deviceActive = deviceActiveService
 											.getFirstActiveInfo(active.getDevice());
-									if (deviceActive != null) {
+									if (deviceActive != null && deviceActive.getImei() != null) {
 										DouYinClickEvent event = douYinClickEventService
 												.selectByUuid(deviceActive.getImei());
 										if (event != null) {// 鍥炶皟

--
Gitblit v1.8.0