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

Commit 5d2ef29a authored by 胡佳晨's avatar 胡佳晨

修改 添加 orderlist方法

parent c111057c
...@@ -573,9 +573,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService { ...@@ -573,9 +573,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
time2 = System.currentTimeMillis(); time2 = System.currentTimeMillis();
//redis 添加未支付列表 //redis 添加未支付列表
int randomKey = redisUtils.addUnPayOrder(orderVo.getOrderId()); // int randomKey = redisUtils.addUnPayOrder(orderVo.getOrderId());
//redis 赋值 //redis 赋值
orderVo.setRandomKey(randomKey); // orderVo.setRandomKey(randomKey);
orderVo.setOrderAttrVo(orderAttrVo); orderVo.setOrderAttrVo(orderAttrVo);
orderVo.setOrderSkuVoIds(goblinOrderSkuIdList); orderVo.setOrderSkuVoIds(goblinOrderSkuIdList);
orderVo.setCreatedAt(getNowTime()); orderVo.setCreatedAt(getNowTime());
......
...@@ -293,6 +293,8 @@ public class GoblinRedisUtils { ...@@ -293,6 +293,8 @@ public class GoblinRedisUtils {
if (list.size() >= 40) { if (list.size() >= 40) {
list.remove(0); list.remove(0);
list.add(orderId); list.add(orderId);
} else {
list.add(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