记得上下班打卡 | git大法好,push需谨慎

Commit 5e5db225 authored by zhengfuxin's avatar zhengfuxin

定时任务, 删除缓存, 修改排序 按照shelvesAt

parent a2f16442
......@@ -463,8 +463,8 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
// query.addCriteria(Criteria.where("name").regex(pattern).and("spuAppear").is("0").and("delFlg").is("0").and("shelvesStatus").is("3"));
query.addCriteria(Criteria.where("spuAppear").is("0").and("delFlg").is("0").and("shelvesStatus").is("3").and("marketId").is(null));
query.with(Sort.by(
Sort.Order.desc("count"),
Sort.Order.desc("createdAt")
//Sort.Order.desc("count"),
Sort.Order.desc("shelvesAt")
));
List<GoblinGoodsInfoVo> list = mongoTemplate.find(query, GoblinGoodsInfoVo.class, GoblinGoodsInfoVo.class.getSimpleName());
ArrayList<GoblinGoodsInfoListVo> list1=ObjectUtil.getGoblinGoodsInfoListVo();
......
package com.liquidnet.service.platform.service.impl.goblin;
import com.liquidnet.service.goblin.constant.GoblinRedisConst;
import com.liquidnet.service.goblin.dto.vo.GoblinGoodsInfoVo;
import com.liquidnet.service.platform.utils.GoblinRedisUtils;
import com.liquidnet.service.platform.utils.QueueUtils;
......@@ -59,6 +60,9 @@ public class SpuGoodsInfoImpl {
obj);
}
log.info("执行完毕");
goblinRedisUtils.del(GoblinRedisConst.SELECT_GOODS_SPUIDS);
goblinRedisUtils.del(GoblinRedisConst.SELECT_GOODS_PAGE1);
goblinRedisUtils.del(GoblinRedisConst.SELECT_GOODS_SPUIDS_ISHAVE);
return true;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment