|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
package au.com.royalpay.payment.manage.merchants.web;
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.core.cancelorder.service.CancelOrderService;
|
|
|
|
|
import au.com.royalpay.payment.core.cancelorder.service.impl.CancelOrderServiceImpl;
|
|
|
|
|
import au.com.royalpay.payment.core.exceptions.ParamInvalidException;
|
|
|
|
|
import au.com.royalpay.payment.manage.kyc.core.KycService;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.ClientComplianceCompanyMapper;
|
|
|
|
@ -63,6 +65,9 @@ public class PartnerViewController {
|
|
|
|
|
@Resource
|
|
|
|
|
private KycService kycService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private CancelOrderService cancelOrderService;
|
|
|
|
|
|
|
|
|
|
@RequestMapping(method = RequestMethod.GET)
|
|
|
|
|
@RequirePartner
|
|
|
|
|
@ResponseBody
|
|
|
|
@ -676,4 +681,10 @@ public class PartnerViewController {
|
|
|
|
|
public void updateApsKycClient(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account, @RequestBody JSONObject item) {
|
|
|
|
|
clientManager.updateApsKycClient(account, item);
|
|
|
|
|
}
|
|
|
|
|
@PartnerMapping(value = "/cancel_order", method = RequestMethod.POST)
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public JSONObject cancel(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account, @RequestBody JSONObject order, Errors errors) {
|
|
|
|
|
System.out.println("=====>cancel_order");
|
|
|
|
|
return cancelOrderService.cancelOrderOrNot(order.getString("orderId"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|