|
|
|
@@ -10,9 +10,6 @@ import com.simple.domain.po.WxMerchantBUser; |
|
|
|
import com.simple.domain.po.WxRefundOrder; |
|
|
|
import com.simple.enums.EnumRefundWay; |
|
|
|
import com.simple.exception.MallinkException; |
|
|
|
import com.simple.service.WxCouponOrderService; |
|
|
|
import com.simple.service.WxOrderService; |
|
|
|
import com.simple.service.WxPayOrderService; |
|
|
|
import com.simple.service.WxRefundOrderService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
@@ -35,15 +32,6 @@ public class WxRefundOrderController extends BaseController { |
|
|
|
@Autowired |
|
|
|
private PayProperty payProperty; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxCouponOrderService wxCouponOrderService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxOrderService wxOrderService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxPayOrderService wxPayOrderService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxRefundOrderService wxRefundOrderService; |
|
|
|
|
|
|
|
@@ -69,8 +57,8 @@ public class WxRefundOrderController extends BaseController { |
|
|
|
WxMerchantBUser bUser = getUser(); |
|
|
|
WxAppinfo appinfo = getAppInfo(bUser.getAppId()); |
|
|
|
try { |
|
|
|
wxRefundOrderService.createRefundOrder(payProperty.isReal(), appinfo, couponOrderId, EnumRefundWay.B, bUser.getId()); |
|
|
|
return new ResultData(); |
|
|
|
ResultData rd = wxRefundOrderService.createRefundOrder(payProperty.isReal(), appinfo, couponOrderId, EnumRefundWay.B, bUser.getId()); |
|
|
|
return rd; |
|
|
|
} catch (MallinkException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
return new ResultData(e.getErrorCode(), e.getMessage()); |
|
|
|
|