|
|
|
@ -824,13 +824,13 @@ public class YxStoreOrderServiceImpl extends BaseServiceImpl<StoreOrderMapper, Y
|
|
|
|
|
throw new YshopException("请后台先添加快递公司"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//判断拼团产品
|
|
|
|
|
if (orderQueryVo.getPinkId() != null && orderQueryVo.getPinkId() > 0) { |
|
|
|
|
YxStorePink pink = pinkService.getById(orderQueryVo.getPinkId()); |
|
|
|
|
if (!OrderInfoEnum.PINK_STATUS_2.getValue().equals(pink.getStatus())) { |
|
|
|
|
throw new YshopException("拼团未成功不能发货"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// //判断拼团产品--现允许未成团单独发货
|
|
|
|
|
// if (orderQueryVo.getPinkId() != null && orderQueryVo.getPinkId() > 0) {
|
|
|
|
|
// YxStorePink pink = pinkService.getById(orderQueryVo.getPinkId());
|
|
|
|
|
// if (!OrderInfoEnum.PINK_STATUS_2.getValue().equals(pink.getStatus())) {
|
|
|
|
|
// throw new YshopException("拼团未成功不能发货");
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
YxStoreOrder storeOrder = YxStoreOrder.builder() |
|
|
|
|
.id(orderQueryVo.getId()) |
|
|
|
@ -2789,11 +2789,11 @@ public class YxStoreOrderServiceImpl extends BaseServiceImpl<StoreOrderMapper, Y
|
|
|
|
|
str = "[拼团订单]"; |
|
|
|
|
} else { |
|
|
|
|
if (OrderInfoEnum.PINK_STATUS_1.getValue().equals(storePink.getStatus())) { |
|
|
|
|
str = "[拼团订单]正在进行中"; |
|
|
|
|
str = "[拼团订单]拼团进行中"; |
|
|
|
|
} else if (OrderInfoEnum.PINK_STATUS_2.getValue().equals(storePink.getStatus())) { |
|
|
|
|
str = "[拼团订单]已完成"; |
|
|
|
|
str = "[拼团订单]拼团成功"; |
|
|
|
|
} else if (OrderInfoEnum.PINK_STATUS_3.getValue().equals(storePink.getStatus())) { |
|
|
|
|
str = "[拼团订单]未完成"; |
|
|
|
|
str = "[拼团订单]拼团失败"; |
|
|
|
|
} else { |
|
|
|
|
str = "[拼团订单]历史订单"; |
|
|
|
|
} |
|
|
|
|