sku 逻辑删除
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package cn.ysk.cashier.controller.product;
|
||||
|
||||
import cn.ysk.cashier.annotation.AnonymousAccess;
|
||||
import cn.ysk.cashier.annotation.Log;
|
||||
import cn.ysk.cashier.dto.product.TbProductSortCriteria;
|
||||
import cn.ysk.cashier.vo.TbProductVo;
|
||||
|
||||
@@ -38,7 +38,7 @@ public class TbShopSongController {
|
||||
if(redisUtils.hasKey(CacheKey.SONG_URL + criteria.getShopId())){
|
||||
code = (String) redisUtils.get(CacheKey.SONG_URL + criteria.getShopId());
|
||||
}else {
|
||||
code = RandomStringUtils.randomAlphanumeric(8);
|
||||
code = RandomStringUtils.randomAlphanumeric(12);
|
||||
redisUtils.set(CacheKey.SONG_URL + criteria.getShopId(), code);
|
||||
redisUtils.set(CacheKey.SONG_URL + code, criteria.getShopId());
|
||||
}
|
||||
@@ -51,7 +51,7 @@ public class TbShopSongController {
|
||||
@ApiOperation("更新歌手页地址")
|
||||
@AnonymousPostMapping
|
||||
public ResponseEntity<Object> createUrl(String shopId) {
|
||||
String key = RandomStringUtils.randomAlphanumeric(8);
|
||||
String key = RandomStringUtils.randomAlphanumeric(12);
|
||||
redisUtils.set(CacheKey.SONG_URL + shopId, key);
|
||||
redisUtils.set(CacheKey.SONG_URL + key, shopId);
|
||||
return new ResponseEntity<>(key,HttpStatus.OK);
|
||||
|
||||
Reference in New Issue
Block a user