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

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

已经发货的订单 可同步成功,不存在的订单可以同步成功

parent b17b8535
...@@ -580,11 +580,11 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService { ...@@ -580,11 +580,11 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
orderVo = redisUtils.getGoblinOrder(orderId); orderVo = redisUtils.getGoblinOrder(orderId);
} else { } else {
orderVo = mongoUtils.getGoblinStoreOrderVoByCode(orderCode); orderVo = mongoUtils.getGoblinStoreOrderVoByCode(orderCode);
orderId = orderVo.getOrderId();
} }
if (orderVo == null) {//|| !orderVo.getStoreId().equals(storeInfoVo.getStoreId()) if (orderVo == null) {//|| !orderVo.getStoreId().equals(storeInfoVo.getStoreId())
return ResponseDto.failure("无法查看"); return ResponseDto.failure("无法查看");
} }
orderId = orderVo.getOrderId();
if (orderVo.getStatus() != GoblinStatusConst.Status.ORDER_STATUS_2.getValue()) { if (orderVo.getStatus() != GoblinStatusConst.Status.ORDER_STATUS_2.getValue()) {
return ResponseDto.failure("无法发货"); return ResponseDto.failure("无法发货");
} }
......
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