|
@@ -535,6 +535,10 @@ public class GoodsDonController {
|
|
|
yhsId = yhShopFrontService.getYhsIdByCustomId(customId);
|
|
yhsId = yhShopFrontService.getYhsIdByCustomId(customId);
|
|
|
key = RedisService.key.YH_HOME_PAGHE_CACHE_SHOP.getEnvName() + yhsId + ":homeManage";
|
|
key = RedisService.key.YH_HOME_PAGHE_CACHE_SHOP.getEnvName() + yhsId + ":homeManage";
|
|
|
}
|
|
}
|
|
|
|
|
+ List<Long> filter_goodsIds = getFilterGoodsIds();
|
|
|
|
|
+ if (CollUtil.isNotEmpty(filter_goodsIds)) {
|
|
|
|
|
+ key += ":hz-ip";
|
|
|
|
|
+ }
|
|
|
Long fUid = StpUserUtil.getUserIdAfterLogin();
|
|
Long fUid = StpUserUtil.getUserIdAfterLogin();
|
|
|
Object o = redisService.get(key);
|
|
Object o = redisService.get(key);
|
|
|
if (o == null) {
|
|
if (o == null) {
|
|
@@ -550,6 +554,9 @@ public class GoodsDonController {
|
|
|
.field(HomeManagementFrontView::getType, type.name());
|
|
.field(HomeManagementFrontView::getType, type.name());
|
|
|
if (type == HomeManagementConfig.Type.ex || type == HomeManagementConfig.Type.vg) {
|
|
if (type == HomeManagementConfig.Type.ex || type == HomeManagementConfig.Type.vg) {
|
|
|
builder.put("condition", conditionSql);
|
|
builder.put("condition", conditionSql);
|
|
|
|
|
+ if (CollUtil.isNotEmpty(filter_goodsIds)) {
|
|
|
|
|
+ builder.field(HomeManagementFrontView::getGoodsId, filter_goodsIds).op(Operator.NotIn);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
List<HomeManagementFrontView> homeManagementFrontViews = beanSearcher.searchAll(HomeManagementFrontView.class, builder.build());
|
|
List<HomeManagementFrontView> homeManagementFrontViews = beanSearcher.searchAll(HomeManagementFrontView.class, builder.build());
|
|
|
map.putIfAbsent(type.name(), homeManagementFrontViews);
|
|
map.putIfAbsent(type.name(), homeManagementFrontViews);
|
|
@@ -936,6 +943,10 @@ public class GoodsDonController {
|
|
|
if (cgy != null) {
|
|
if (cgy != null) {
|
|
|
categoryGoodsKey += ":" + cgy;
|
|
categoryGoodsKey += ":" + cgy;
|
|
|
}
|
|
}
|
|
|
|
|
+ List<Long> filter_goodsIds = getFilterGoodsIds();
|
|
|
|
|
+ if (CollUtil.isNotEmpty(filter_goodsIds)) {
|
|
|
|
|
+ categoryGoodsKey += ":hz-ip";
|
|
|
|
|
+ }
|
|
|
Object o = redisService.get(categoryGoodsKey);
|
|
Object o = redisService.get(categoryGoodsKey);
|
|
|
if (o == null) {
|
|
if (o == null) {
|
|
|
MapBuilder mapBuilder = MapUtils.flatBuilder(request.getParameterMap());
|
|
MapBuilder mapBuilder = MapUtils.flatBuilder(request.getParameterMap());
|
|
@@ -943,6 +954,9 @@ public class GoodsDonController {
|
|
|
String condition = String.format(" and gcr.category = %s", cgy);
|
|
String condition = String.format(" and gcr.category = %s", cgy);
|
|
|
mapBuilder.put("condition", condition);
|
|
mapBuilder.put("condition", condition);
|
|
|
}
|
|
}
|
|
|
|
|
+ if (CollUtil.isNotEmpty(filter_goodsIds)) {
|
|
|
|
|
+ mapBuilder.field(GoodsFrontListCategoryView::getId, filter_goodsIds).op(Operator.NotIn);
|
|
|
|
|
+ }
|
|
|
List<GoodsFrontListCategoryView> goodsFrontListViews = beanSearcher.searchAll(GoodsFrontListCategoryView.class, mapBuilder.build());
|
|
List<GoodsFrontListCategoryView> goodsFrontListViews = beanSearcher.searchAll(GoodsFrontListCategoryView.class, mapBuilder.build());
|
|
|
redisService.setNx(categoryGoodsKey, goodsFrontListViews, RedisService.key.YH_HOME_PAGHE_CACHE.getTimeout() + 10 * 60);
|
|
redisService.setNx(categoryGoodsKey, goodsFrontListViews, RedisService.key.YH_HOME_PAGHE_CACHE.getTimeout() + 10 * 60);
|
|
|
o = redisService.get(categoryGoodsKey);
|
|
o = redisService.get(categoryGoodsKey);
|