From dadacf7c1065876248bec86cf17c06ca4be1b97c Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期二, 30 七月 2019 14:55:17 +0800
Subject: [PATCH] Merge branch 'div' of ssh://193.112.35.168:29418/fanli-server into div

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoGoodsUpdateServiceImpl.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoGoodsUpdateServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoGoodsUpdateServiceImpl.java
index 8c86f1f..4a5f1a1 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoGoodsUpdateServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoGoodsUpdateServiceImpl.java
@@ -113,6 +113,8 @@
 		if (goods.getAuctionId() == null || goods.getAuctionId() == 0)
 			throw new TaobaoGoodsUpdateException(2, "鍟嗗搧ID涓虹┖");
 
+		// 璁剧疆鍟嗗搧姝e父涓婄嚎
+		goods.setState(0);
 		// 鏇存柊鏀惰棌淇℃伅
 		try {
 			commonGoodsService.updateCommonGoods(CommonGoodsFactory.create(goods));
@@ -140,7 +142,6 @@
 
 	@Override
 	public void deleteOutOfDate() {
-		TaoBaoGoodsBriefMapper taoBaoGoodsBriefMapper = BeanUtil.getBean(TaoBaoGoodsBriefMapper.class);
 		List<Long> list = taoBaoGoodsBriefMapper
 				.queryCanDeleteGoods(new Date(System.currentTimeMillis() - 1000 * 60 * 60 * 24 * 2), 0, 2000);
 		for (Long auctionId : list) {

--
Gitblit v1.8.0