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

Commit 03fb4655 authored by 胡佳晨's avatar 胡佳晨

修改bug 下单 zz列表

parent 073242f6
...@@ -823,7 +823,7 @@ public class GoblinRedisUtils { ...@@ -823,7 +823,7 @@ public class GoblinRedisUtils {
// 添加 订单id列表 // 添加 订单id列表
public void addZhengzaiOrderList(String uid, String orderId) { public void addZhengzaiOrderList(String uid, String orderId) {
String redisKey = GoblinRedisConst.REDIS_GOBLIN_ORDER_ZHENGZAI_LIST.concat(uid); String redisKey = GoblinRedisConst.REDIS_GOBLIN_ORDER_ZHENGZAI_LIST.concat(uid);
List<String> list = getOrderList(uid); List<String> list = getZhengzaiOrderList(uid);
list.add(orderId); list.add(orderId);
redisUtil.set(redisKey, list); redisUtil.set(redisKey, list);
} }
...@@ -831,7 +831,7 @@ public class GoblinRedisUtils { ...@@ -831,7 +831,7 @@ public class GoblinRedisUtils {
// 删除 订单id列表 // 删除 订单id列表
public void removeZhengzaiOrderList(String uid, String orderId) { public void removeZhengzaiOrderList(String uid, String orderId) {
String redisKey = GoblinRedisConst.REDIS_GOBLIN_ORDER_ZHENGZAI_LIST.concat(uid); String redisKey = GoblinRedisConst.REDIS_GOBLIN_ORDER_ZHENGZAI_LIST.concat(uid);
List<String> list = getOrderList(uid); List<String> list = getZhengzaiOrderList(uid);
list.remove(orderId); list.remove(orderId);
redisUtil.set(redisKey, list); redisUtil.set(redisKey, list);
} }
......
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