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

Commit 022a0cc5 authored by 胡佳晨's avatar 胡佳晨

添加 spu销量

parent 022f3d73
......@@ -509,13 +509,13 @@ public class GoblinRedisUtils {
}
// 增加 spu销量
public int incrSpuSaleCount(String spuId, int number) {
private int incrSpuSaleCount(String spuId, int number) {
String redisKey = GoblinRedisConst.REDIS_GOBLIN_SALE_SPU_COUNT.concat(spuId);
return (int) redisUtil.incr(redisKey, number);
}
// 减少 spu销量
public int decrSpuSaleCount(String spuId, int number) {
private int decrSpuSaleCount(String spuId, int number) {
String redisKey = GoblinRedisConst.REDIS_GOBLIN_SALE_SPU_COUNT.concat(spuId);
return (int) redisUtil.decr(redisKey, number);
}
......
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