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

Commit 3ed78d1d authored by zhanggb's avatar zhanggb

~API:商品管理:直接上架、预约上架:+精选商品方法调用;

~API:店铺配置:营业、停业:更新商品spu_appear赋值更正;
parent 3194e341
......@@ -77,6 +77,10 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
goblinMongoUtils.setGoodsInfoVo(goodsInfoVo);
goblinMongoUtils.setGoodsSkuInfoVos(goodsSkuInfoVoList);
if (goodsInfoVo.getShelvesHandle().equals("2")) {
goblinRedisUtils.deleteKeyForSelectGoods();// 精选商品:商品上架、下架、删除 调用的方法
}
String createdBy = goodsInfoVo.getCreatedBy();
LocalDateTime createdAt = goodsInfoVo.getCreatedAt();
String spuId = goodsInfoVo.getSpuId();
......
......@@ -80,7 +80,7 @@ public class GoblinStoreMgtServiceImpl implements IGoblinStoreMgtService {
goblinMongoUtils.updateStoreInfoVo(updateStoreInfoVo);
// goblinRedisUtils.setStoreInfoVo(updateStoreInfoVo);// TODO: 2022/1/17 zhanggb==redis
goblinMongoUtils.updateGoodsInfoVoAppear(storeId, status, now, uid);
goblinMongoUtils.updateGoodsInfoVoAppear(storeId, status.equals("4") ? "1" : "0", now, uid);
List<String> spuIdList = goblinMongoUtils.getMgtGoodsSpuIds(storeId);
spuIdList.forEach(spuId -> goblinRedisUtils.delGoodsInfoVo(spuId));
......
......@@ -64,6 +64,11 @@ public class PlatformGoblinGoodsService extends ServiceImpl<GoblinGoodsMapper, G
if (updateSkuResult.getModifiedCount() > 0) {
AbstractRedisUtil redisGoblinUtil = redisDataSourceUtil.getRedisGoblinUtil();
{// 精选商品:商品上架、下架、删除 调用的方法
redisGoblinUtil.del(GoblinRedisConst.SELECT_GOODS_SPUIDS);
redisGoblinUtil.del(GoblinRedisConst.SELECT_GOODS_PAGE1);
}
Query query = Query.query(Criteria.where("delFlg").is("0").and("spuId").in(spuIdList));
query.fields().include("skuId");
List<GoblinGoodsSkuInfoVo> vos = mongoTemplate.find(query, GoblinGoodsSkuInfoVo.class, GoblinGoodsSkuInfoVo.class.getSimpleName());
......
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