|
|
@@ -66,7 +66,8 @@ public class CmsGoodsDonSkuController {
|
|
|
@Log(module = "平台管理/新增商品sku&spec", businessType = BusinessType.POST, isSaveRequestData = true)
|
|
|
public Result<String> skuInsert(@Validated @RequestBody ReqGoodsSkuInsert insert) throws Exception{
|
|
|
goodsDonSpecService.insertOrUpdateSkuSpec(insert, false);
|
|
|
-
|
|
|
+ Set<String> keys = redisService.keys(RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "*");
|
|
|
+ redisService.del(keys.toArray(String[]::new));
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
|
|
|
@@ -76,6 +77,8 @@ public class CmsGoodsDonSkuController {
|
|
|
@PutMapping("/update/spec")
|
|
|
public Result<String> updateGoodsSpec(@Validated @RequestBody ReqGoodsSkuInsert insert) throws Exception {
|
|
|
goodsDonSpecService.insertOrUpdateSkuSpec(insert, true);
|
|
|
+ Set<String> keys = redisService.keys(RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "*");
|
|
|
+ redisService.del(keys.toArray(String[]::new));
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
|