From 6b8ab82d1d7fb9d44d85eeb1dfd2e36d3c28c9cf Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期一, 10 六月 2019 11:30:21 +0800
Subject: [PATCH] 客服消息修改,新版大淘客数据添加

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/lable/QualityFactoryServiceImpl.java |   89 +-------------------------------------------
 1 files changed, 3 insertions(+), 86 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/QualityFactoryServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/QualityFactoryServiceImpl.java
index a6a4c43..bb176b1 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/QualityFactoryServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/QualityFactoryServiceImpl.java
@@ -34,7 +34,6 @@
 import com.yeshi.fanli.service.inter.taobao.TaoBaoUnionConfigService;
 import com.yeshi.fanli.util.RedisManager;
 import com.yeshi.fanli.util.StringUtil;
-import com.yeshi.fanli.util.taobao.TaoBaoUtil;
 import com.yeshi.fanli.util.taobao.TaoKeApiUtil;
 import com.yeshi.fanli.vo.quality.QualityFactoryVO;
 
@@ -319,15 +318,6 @@
 		qualityFactoryMapper.updateWeight(weight, time);
 	}
 
-	@Override
-	public long queryNeedUpdateCount() {
-		return qualityFactoryMapper.countQueryNeedUpdate();
-	}
-
-	@Override
-	public List<Long> queryNeedUpdate(long start, int count, int hour) {
-		return qualityFactoryMapper.queryNeedUpdate(start, count, hour);
-	}
 
 	/**
 	 * 鑾峰彇缂撳瓨
@@ -399,6 +389,7 @@
 	}
 
 	@Override
+	@Transactional
 	public void autoInsertOrUpadateStorage(BoutiqueAutoRule autoRule, List<TaoBaoGoodsBrief> goodsList,	List<Label> listLabs) {
 
 		if (goodsList == null || goodsList.size() == 0) {
@@ -731,7 +722,6 @@
 			return;
 		} 
 		
-		
 		// 澶т簬100闇�瑕佸垎娈靛垹闄�
 		int start = 0;
 		int end = 100;
@@ -759,88 +749,15 @@
 	}
 	
 
-	/**
-	 * 鏌ヨ绮鹃�夊晢鍝佹暟鎹簲鐢ㄥ墠绔�
-	 * 
-	 * @param start
-	 * @param count
-	 * @param key
-	 * @param classId
-	 *            鍒嗙被id
-	 * @param labId
-	 *            鏍囩id
-	 * @return
-	 */
+
 	@Override
 	public List<QualityFactory> listQuery(long start, int count, String key, Long classId, Long labId) {
 		return qualityFactoryMapper.listQuery(start, count, key, classId, labId, null, null);
 	}
-
-	/**
-	 * 瀵瑰簲鏌ヨ绮鹃�夊晢鍝佹暟鎹簲鐢ㄥ墠绔粺璁�
-	 */
+	
 	@Override
 	public long countQuery(String key, Integer goodsSource, Long classId, Long labId) {
 		return qualityFactoryMapper.countQuery(key, classId, labId, null, null);
-	}
-
-	public LabelGoods screen9K9(TaoBaoGoodsBrief goodsBrief, Map<String, Label> map) {
-		// 璐翠笂鏂版爣绛�
-		LabelGoods lg = null;
-
-		/* 9k9 */
-		BigDecimal price9k9 = new BigDecimal(10);
-		/* 19k9 */
-		BigDecimal price19k9 = new BigDecimal(20);
-		/* 29.9 */
-		BigDecimal price29K9 = new BigDecimal(30);
-		/* 49.9 */
-		BigDecimal price49K9 = new BigDecimal(50);
-		/* 鍒稿悗浠�--璁$畻 */
-		BigDecimal couponPrice = TaoBaoUtil.getAfterUseCouplePrice(goodsBrief);
-
-		if (couponPrice.compareTo(price9k9) < 0) {
-			Label label = map.get("9.9");
-			if (label == null) {
-				return null;
-			}
-
-			lg = new LabelGoods();
-			lg.setLabel(label);
-
-		} else if (couponPrice.compareTo(price19k9) < 0) {
-			Label label = map.get("19.9");
-			if (label == null) {
-				return null;
-			}
-
-			lg = new LabelGoods();
-			lg.setLabel(label);
-		} else if (couponPrice.compareTo(price29K9) < 0) {
-			Label label = map.get("29.9");
-			if (label == null) {
-				return null;
-			}
-
-			lg = new LabelGoods();
-			lg.setLabel(label);
-		} else if (couponPrice.compareTo(price49K9) < 0) {
-			Label label = map.get("49.9");
-			if (label == null) {
-				return null;
-			}
-
-			lg = new LabelGoods();
-			lg.setLabel(label);
-		} else {
-			return null;
-		}
-
-		lg.setCreateUser(new AdminUser(2L));
-		lg.setCreatetime(new Date());
-		lg.setTaoBaoGoodsBrief(goodsBrief);
-
-		return lg;
 	}
 
 	@Override

--
Gitblit v1.8.0