diff --git a/service/src/main/java/com/hfkj/service/order/impl/BsOrderAfterSalesApplyServiceImpl.java b/service/src/main/java/com/hfkj/service/order/impl/BsOrderAfterSalesApplyServiceImpl.java index 933e1d7..981c1af 100644 --- a/service/src/main/java/com/hfkj/service/order/impl/BsOrderAfterSalesApplyServiceImpl.java +++ b/service/src/main/java/com/hfkj/service/order/impl/BsOrderAfterSalesApplyServiceImpl.java @@ -185,9 +185,7 @@ public class BsOrderAfterSalesApplyServiceImpl implements BsOrderAfterSalesApply throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "退款失败!" + orderRefund.getRefundFailReason()); } } else if (OrderAfterSalesApplyTypeEnum.type2.getCode() == apply.getType()) { - apply.setStatus(OrderAfterSalesApplyStatusEnum.type3.getCode()); - - } else { + apply.setStatus(OrderAfterSalesApplyStatusEnum.type3.getCode());} else { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知申请类型"); } @@ -241,6 +239,15 @@ public class BsOrderAfterSalesApplyServiceImpl implements BsOrderAfterSalesApply } else { apply.setStatus(OrderAfterSalesApplyStatusEnum.type2.getCode()); + BsOrderGoods bsOrderGoods = bsOrderGoodsService.findGoodsOrderByChild(apply.getChildOrderNo()); + if (bsOrderGoods != null) { + + bsOrderGoods.setStatus(2); + bsOrderGoods.setLogisticsStatus(null); + bsOrderGoods.setLogisticsStatusDesc(null); + bsOrderGoods.setUpdateTime(new Date()); + bsOrderGoodsService.updateIsNull(bsOrderGoods); + } } // 操作记录