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

Commit dbbc2cdd authored by 胡佳晨's avatar 胡佳晨

修改 添加 orderlist方法

parent 7320823d
......@@ -290,7 +290,10 @@ public class GoblinRedisUtils {
public void addOrderList(String uid, String orderId) {
String redisKey = GoblinRedisConst.REDIS_GOBLIN_ORDER_LIST.concat(uid);
List<String> list = getOrderList(uid);
list.add(orderId);
if (list.size() >= 40) {
list.remove(0);
list.add(orderId);
}
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