From 61c5798554f93d2f54181cb05b344ad62b4e651a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=81=B0=E7=81=B0?= Date: Tue, 13 Sep 2022 00:14:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=91=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=A7=AF=E5=88=86=E5=85=A8=E9=A2=9D=E6=8A=B5=E6=89=A3=EF=BC=8C?= =?UTF-8?q?=E9=87=91=E9=A2=9D0=E5=85=83=E8=B4=AD=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=EF=BC=8C=E8=BF=9B=E8=A1=8C=E5=94=AE=E5=90=8E?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E5=AE=8C=E6=AF=95=EF=BC=8C=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=9C=AA=E5=AE=8C=E7=BB=93=E7=9A=84=E6=83=85=E5=86=B5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Services/Bill/CoreCmsBillAftersalesServices.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CoreCms.Net.Services/Bill/CoreCmsBillAftersalesServices.cs b/CoreCms.Net.Services/Bill/CoreCmsBillAftersalesServices.cs index 12be24a0..1fe8e884 100644 --- a/CoreCms.Net.Services/Bill/CoreCmsBillAftersalesServices.cs +++ b/CoreCms.Net.Services/Bill/CoreCmsBillAftersalesServices.cs @@ -652,6 +652,12 @@ namespace CoreCms.Net.Services } } + //如果是0元购,积分单品兑换模式,也应该将订单类型变成已完成。 + if (refund == 0 && orderInfo.point > 0 && orderInfo.pointMoney == orderInfo.goodsAmount) + { + orderInfo.status = (int)GlobalEnumVars.OrderStatus.Complete; + } + //判断货物发完没,如果货已发完了,订单发货就变成已发货,为了判断在有退款的情况下,当 var allDeliveryed = true; //商品该发货状态,默认发货了,为了判断部分发货的情况下,的订单发货状态 var noDeliveryed = true; //是否都没发货,默认都没发货