From 820b16647df8facb706ee8df143db7b0b86267f3 Mon Sep 17 00:00:00 2001 From: yuanye <418471657@qq.com> Date: Mon, 13 Jan 2025 09:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B1=87=E8=81=94=E9=80=9Adi?= =?UTF-8?q?stributorId=20=20=E5=8E=9F=E5=8F=82=E6=95=B0aNId4A3X=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BAorjuOND7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/BsOrderAfterSalesApplyServiceImpl.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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); + } } // 操作记录