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

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

修改bug

parent 2c6163fb
...@@ -395,7 +395,7 @@ public class GoblinOrderAppServiceImpl implements IGoblinOrderAppService { ...@@ -395,7 +395,7 @@ public class GoblinOrderAppServiceImpl implements IGoblinOrderAppService {
orderVo.setPaymentType(paymentType); orderVo.setPaymentType(paymentType);
orderVo.setOrderSkuVoIds(skuList); orderVo.setOrderSkuVoIds(skuList);
redisUtils.setGoblinOrder(orderId, orderVo); redisUtils.setGoblinOrder(orderId, orderVo);
redisUtils.setOffCode(orderVo.getMasterOrderCode(), orderVo.getWriteOffCode()); redisUtils.setOffCode(orderVo.getWriteOffCode(), orderVo.getMasterOrderCode());
//删除未支付订单 //删除未支付订单
redisUtils.removeGoblinOrder(null, orderId); redisUtils.removeGoblinOrder(null, orderId);
//mongo //mongo
......
...@@ -728,7 +728,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService { ...@@ -728,7 +728,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
orderVo.setPaymentType(syncOrderParam.getPaymentType()); orderVo.setPaymentType(syncOrderParam.getPaymentType());
orderVo.setOrderSkuVoIds(skuList); orderVo.setOrderSkuVoIds(skuList);
redisUtils.setGoblinOrder(orderId, orderVo); redisUtils.setGoblinOrder(orderId, orderVo);
redisUtils.setOffCode(orderVo.getMasterOrderCode(), orderVo.getWriteOffCode()); redisUtils.setOffCode(orderVo.getWriteOffCode(),orderVo.getMasterOrderCode());
//删除未支付订单 //删除未支付订单
redisUtils.removeGoblinOrder(null, orderId); redisUtils.removeGoblinOrder(null, orderId);
//mongo //mongo
......
...@@ -892,8 +892,8 @@ public class GoblinRedisUtils { ...@@ -892,8 +892,8 @@ public class GoblinRedisUtils {
redisUtil.set(redisKey, masterCode); redisUtil.set(redisKey, masterCode);
} }
public String[] getOffCode(String masterCode) { public String[] getOffCode(String writeOffCode) {
String redisKey = GoblinRedisConst.REDIS_GOBLIN_ORDER_OFFCODE.concat(masterCode); String redisKey = GoblinRedisConst.REDIS_GOBLIN_ORDER_OFFCODE.concat(writeOffCode);
Object obj = redisUtil.get(redisKey); Object obj = redisUtil.get(redisKey);
if (obj == null) { if (obj == null) {
return null; return null;
......
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