|
|
@@ -93,7 +93,7 @@ public class GoodsDonController {
|
|
|
if (StrUtil.isNotBlank(customId)) {
|
|
|
yhsId = yhShopFrontService.getYhsIdByCustomId(customId);
|
|
|
}
|
|
|
- String key = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "category";
|
|
|
+ String key = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "category";
|
|
|
if (yhsId != null) {
|
|
|
key += ":yhShop:" + yhsId;
|
|
|
}
|
|
|
@@ -232,7 +232,7 @@ public class GoodsDonController {
|
|
|
}
|
|
|
//List<Long> filter_goodsIds = getFilterGoodsIds();
|
|
|
List<Long> filter_goodsIds = null;
|
|
|
- String pcCacheKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "PC";
|
|
|
+ String pcCacheKey = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "PC";
|
|
|
if (CollUtil.isNotEmpty(filter_goodsIds)) {
|
|
|
pcCacheKey += ":hz-ip";
|
|
|
}
|
|
|
@@ -277,7 +277,7 @@ public class GoodsDonController {
|
|
|
}
|
|
|
//List<Long> filter_goodsIds = getFilterGoodsIds();
|
|
|
List<Long> filter_goodsIds = null;
|
|
|
- String h5CacheKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "H5";
|
|
|
+ String h5CacheKey = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "H5";
|
|
|
if (CollUtil.isNotEmpty(filter_goodsIds)) {
|
|
|
h5CacheKey += ":hz-ip";
|
|
|
}
|
|
|
@@ -315,7 +315,7 @@ public class GoodsDonController {
|
|
|
*/
|
|
|
@GetMapping("/get/register")
|
|
|
public Result<List<RegisterGoodsDonView>> getRegisterGoodsDon() {
|
|
|
- String registerCacheKey = RedisService.key.REGISTER_HOME_PAGE_CACHE.getEnvName();
|
|
|
+ String registerCacheKey = RedisService.key.REGISTER_HOME_PAGE_CACHE.getName();
|
|
|
Object value = redisService.get(registerCacheKey);
|
|
|
if (value != null) {
|
|
|
try {
|
|
|
@@ -349,7 +349,7 @@ public class GoodsDonController {
|
|
|
Result<YhShopGoodsFrontView> yhShopGoodsDetail = getGoodsDetailByYhsId(yhShopFrontService.getYhsIdByCustomId(customId), id);
|
|
|
return yhShopGoodsDetail;
|
|
|
}
|
|
|
- String goodsDetailKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "goods_detail:" + id;
|
|
|
+ String goodsDetailKey = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "goods_detail:" + id;
|
|
|
//List<Long> filter_goodsIds = getFilterGoodsIds();
|
|
|
List<Long> filter_goodsIds = null;
|
|
|
//存在过滤平台 商品详情不返回
|
|
|
@@ -437,11 +437,11 @@ public class GoodsDonController {
|
|
|
*/
|
|
|
@GetMapping("/get/recommend/{id}")
|
|
|
public Result<List<GoodsFrontListView>> getRecommendGoodsByGid(@PathVariable Long id, String customId, String dsCode) throws Exception {
|
|
|
- String key = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "recommend:" + id;
|
|
|
+ String key = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "recommend:" + id;
|
|
|
Long yhsId = null;
|
|
|
if (StrUtil.isNotBlank(customId)) {
|
|
|
yhsId = yhShopFrontService.getYhsIdByCustomId(customId);
|
|
|
- key = RedisService.key.YH_HOME_PAGHE_CACHE_SHOP.getEnvName() + yhsId + ":recommend:" + id;
|
|
|
+ key = RedisService.key.YH_HOME_PAGHE_CACHE_SHOP.getName() + yhsId + ":recommend:" + id;
|
|
|
}
|
|
|
Object o = redisService.get(key);
|
|
|
Long fUid = StpUserUtil.getUserIdAfterLogin();
|
|
|
@@ -542,11 +542,11 @@ public class GoodsDonController {
|
|
|
*/
|
|
|
@GetMapping("/get/homeManage")
|
|
|
public Result<Map<String, List<HomeManagementFrontView>>> getHomeManagementFrontPage(String customId, String dsCode) {
|
|
|
- String key = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "homeManage";
|
|
|
+ String key = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "homeManage";
|
|
|
Long yhsId = null;
|
|
|
if (StrUtil.isNotBlank(customId)) {
|
|
|
yhsId = yhShopFrontService.getYhsIdByCustomId(customId);
|
|
|
- key = RedisService.key.YH_HOME_PAGHE_CACHE_SHOP.getEnvName() + yhsId + ":homeManage";
|
|
|
+ key = RedisService.key.YH_HOME_PAGHE_CACHE_SHOP.getName() + yhsId + ":homeManage";
|
|
|
}
|
|
|
// List<Long> filter_goodsIds = getFilterGoodsIds();
|
|
|
List<Long> filter_goodsIds = null;
|
|
|
@@ -721,7 +721,7 @@ public class GoodsDonController {
|
|
|
if (fUid != null) {
|
|
|
if (data.getIsSp()) {
|
|
|
//查找所有特定规格最小价格 满足条件
|
|
|
- String specificGoodsKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "specific:" + data.getId();
|
|
|
+ String specificGoodsKey = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "specific:" + data.getId();
|
|
|
Object speciObj = redisService.get(specificGoodsKey);
|
|
|
List<GoodsDonSku> specificSkus = null;
|
|
|
if (speciObj != null) {
|
|
|
@@ -773,7 +773,7 @@ public class GoodsDonController {
|
|
|
if (fUid != null) {
|
|
|
if (data.getIsSp()) {
|
|
|
//查找所有特定规格最小价格 满足条件
|
|
|
- String specificGoodsKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "specific:" + data.getId();
|
|
|
+ String specificGoodsKey = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "specific:" + data.getId();
|
|
|
Object speciObj = redisService.get(specificGoodsKey);
|
|
|
List<GoodsDonSku> specificSkus = null;
|
|
|
if (speciObj != null) {
|
|
|
@@ -823,7 +823,7 @@ public class GoodsDonController {
|
|
|
*/
|
|
|
public List<GoodsDonSku> getSpecificSku(Long goodsId) {
|
|
|
//查找所有特定规格最小价格 满足条件
|
|
|
- String specificGoodsKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "specific:" + goodsId;
|
|
|
+ String specificGoodsKey = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "specific:" + goodsId;
|
|
|
Object speciObj = redisService.get(specificGoodsKey);
|
|
|
List<GoodsDonSku> specificSkus = null;
|
|
|
if (speciObj != null) {
|
|
|
@@ -907,7 +907,7 @@ public class GoodsDonController {
|
|
|
*/
|
|
|
@GetMapping("/get/shop/goods/{yhsId}")
|
|
|
public Result<List<YhShopGoodsFrontView>> getShopGoods(@PathVariable Long yhsId) {
|
|
|
- String yhShopCacheKey = RedisService.key.YH_HOME_PAGHE_CACHE_SHOP.getEnvName() + yhsId;
|
|
|
+ String yhShopCacheKey = RedisService.key.YH_HOME_PAGHE_CACHE_SHOP.getName() + yhsId;
|
|
|
Object value = redisService.get(yhShopCacheKey);
|
|
|
List<YhShopGoodsFrontView> list = null;
|
|
|
if (value != null) {
|
|
|
@@ -965,7 +965,7 @@ public class GoodsDonController {
|
|
|
return shopGoods;
|
|
|
}
|
|
|
Long fUid = StpUserUtil.getUserIdAfterLogin();
|
|
|
- String categoryGoodsKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "category:goods";
|
|
|
+ String categoryGoodsKey = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "category:goods";
|
|
|
if (cgy != null) {
|
|
|
categoryGoodsKey += ":" + cgy;
|
|
|
}
|
|
|
@@ -1028,7 +1028,7 @@ public class GoodsDonController {
|
|
|
|
|
|
@GetMapping("/get/shop/categoryGoods/{yhsId}")
|
|
|
public Result<List<YhShopGoodsFrontCategoryView>> getShopCategoryGoods(@PathVariable Long yhsId, Long category) {
|
|
|
- String categoryGoodsKey = RedisService.key.YH_HOME_PAGHE_CACHE_SHOP.getEnvName() + yhsId + ":category";
|
|
|
+ String categoryGoodsKey = RedisService.key.YH_HOME_PAGHE_CACHE_SHOP.getName() + yhsId + ":category";
|
|
|
if (category != null) {
|
|
|
categoryGoodsKey += ":" + category;
|
|
|
}
|
|
|
@@ -1080,7 +1080,7 @@ public class GoodsDonController {
|
|
|
*/
|
|
|
@GetMapping("/get/deposit")
|
|
|
public Result<? extends Object> getDepositGoods() {
|
|
|
- String depositGoodsKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "deposit";
|
|
|
+ String depositGoodsKey = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "deposit";
|
|
|
Object o = redisService.get(depositGoodsKey);
|
|
|
if (o == null) {
|
|
|
List<GoodsDon> depositList = beanSearcher.searchAll(GoodsDon.class, MapUtils.builder()
|
|
|
@@ -1104,7 +1104,7 @@ public class GoodsDonController {
|
|
|
*/
|
|
|
@GetMapping("/get/pc/homeManage")
|
|
|
public Result<Map<String, List<HomeManagementFrontView>>> getPcHomeManagementFrontPage() {
|
|
|
- String key = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "pc:homeManage";
|
|
|
+ String key = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "pc:homeManage";
|
|
|
//移除奈飞客厅 临时
|
|
|
Long filterConfigId = null;
|
|
|
// if (isHzIp()) {
|
|
|
@@ -1132,7 +1132,7 @@ public class GoodsDonController {
|
|
|
*/
|
|
|
@GetMapping("/get/pc/realGoodsConfig")
|
|
|
public Result<? extends Object> getPcRealGoodsConfig() throws Exception {
|
|
|
- String key = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "pc:realHomePage";
|
|
|
+ String key = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "pc:realHomePage";
|
|
|
Object o = redisService.get(key);
|
|
|
List<HomeManagementFrontView> list = null;
|
|
|
if (o == null) {
|
|
|
@@ -1151,7 +1151,7 @@ public class GoodsDonController {
|
|
|
*/
|
|
|
@GetMapping("/get/subsidy")
|
|
|
public Result<List<GoodsDonSkuSubsidyFrontView>> getSubsidyGoods() {
|
|
|
- String key = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "subsidy";
|
|
|
+ String key = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "subsidy";
|
|
|
Object o = redisService.get(key);
|
|
|
if (o == null) {
|
|
|
List<GoodsDonSkuSubsidyFrontView> subsidyList = beanSearcher.searchAll(GoodsDonSkuSubsidyFrontView.class, MapUtils.builder().build());
|
|
|
@@ -1188,7 +1188,7 @@ public class GoodsDonController {
|
|
|
*/
|
|
|
@GetMapping("/get/subsidy/detail/{id}")
|
|
|
public Result<GoodsDonSubsidyDetailView> getSubsidyDetailById(@PathVariable Long id) throws Exception {
|
|
|
- String goodsDetailKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "subsidy:detail:" + id;
|
|
|
+ String goodsDetailKey = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "subsidy:detail:" + id;
|
|
|
Object o = redisService.get(goodsDetailKey);
|
|
|
GoodsDonSubsidyDetailView subsidyDetail = null;
|
|
|
if (o == null) {
|