Browse Source

feat:退款

zhanghui 3 months ago
parent
commit
38d6510802

+ 0 - 1
src/main/java/org/springblade/modules/finance/controller/AfterSalesController.java

@@ -197,7 +197,6 @@ public class AfterSalesController extends BladeController {
 		}
 		// 通过
 		if (auditStatus == 1) {
-			afterSales.setRefundState(2);// 退款中
 			orderService.commonRefund(order, afterSalesId);
 		} else if (auditStatus == 2) {// 驳回
 			afterSales.setStatus(AfterSalesStatusEnum.REFUSE.getValue());

+ 0 - 1
src/main/java/org/springblade/modules/finance/service/impl/AfterSalesServiceImpl.java

@@ -210,7 +210,6 @@ public class AfterSalesServiceImpl extends ServiceImpl<AfterSalesMapper, AfterSa
             throw new ServiceException("该售后订单已退款");
         }
         // 通过
-        afterSales.setRefundState(2);// 退款中
         orderService.commonRefund(order, afterSales.getId());
     }
 

+ 1 - 0
src/main/java/org/springblade/modules/finance/service/impl/IWxPayServiceImpl.java

@@ -65,6 +65,7 @@ public class IWxPayServiceImpl implements IWxPayService {
 	@Resource
 	private IOrderService orderService;
 	@Lazy
+	@Resource
 	private IAfterSalesService afterSalesService;
 	@Resource
 	private BladeLogger logger;