| | |
| | |
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import com.yeshi.fanli.dao.mybatis.taobao.dataoke.DaTaoKeDetailMapper;
|
| | | import com.yeshi.fanli.entity.taobao.dataoke.DaTaoKeDetail;
|
| | | import com.yeshi.fanli.log.LogHelper;
|
| | | import com.yeshi.fanli.service.inter.taobao.dataoke.DaTaoKeGoodsDetailService;
|
| | | import com.yeshi.fanli.service.inter.taobao.dataoke.DaTaoKeGoodsService;
|
| | | import com.yeshi.fanli.util.RedisManager;
|
| | |
| | |
|
| | | @Service
|
| | | public class DaTaoKeGoodsServiceImpl implements DaTaoKeGoodsService {
|
| | |
|
| | | @Resource
|
| | | private DaTaoKeDetailMapper daTaoKeDetailMapper;
|
| | |
|
| | | @Resource
|
| | | private DaTaoKeGoodsDetailService daTaoKeGoodsDetailService;
|
| | |
| | | || list.size() == 0)// 超过20分钟未更新
|
| | | {
|
| | | list = DaTaoKeUtil.getCurrentHotSalesRank();
|
| | | LogHelper.test("热销数量:" + list.size());
|
| | | list = reSearchDetails(list);
|
| | | if (list != null && list.size() > 0)
|
| | | redisManager.saveObjList(list, key, null);// 长期缓存
|
| | |
| | | return list;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<DaTaoKeDetail> getGoodsNotInList(Long cid, List<Long> listId, int count) {
|
| | | return daTaoKeDetailMapper.getGoodsNotInList(cid, listId, count);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<DaTaoKeDetail> listBySellerId(long start, int count, Long sellerId){
|
| | | return daTaoKeDetailMapper.listBySellerId(start, count, sellerId);
|
| | | }
|
| | | |
| | | }
|