|
|
|
@@ -102,19 +102,31 @@ public class PosController extends BaseController { |
|
|
|
return posService.checkCouponOrderForIndepentVerify(user, verifyType, couponOrderIdStr); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "券交易核销检查") |
|
|
|
@ApiOperation(value = "券交易核销检查", notes = "{\"coupon_order_id\":\"string(必填)\",\"pos_order_id\":\"string(必填)\",\"pos_amount\":\"string(必填)\"}") |
|
|
|
@PostMapping("checkCouponOrderForPayVerify") |
|
|
|
public ResultData checkCouponOrderForPayVerify(@RequestBody Map<String, String> params) { |
|
|
|
WxMerchantBUser user = getUser(); |
|
|
|
String couponOrderIdStr = params.get(WxPayConstant.COUPON_ORDER_ID); // 券包ID |
|
|
|
String posOrderIdStr = params.get(WxPayConstant.POS_ORDER_ID); // POS订单ID |
|
|
|
String posAmountStr = params.get(WxPayConstant.POS_AMOUNT); // POS订单金额 |
|
|
|
|
|
|
|
if (StringUtils.isBlank(couponOrderIdStr)) { |
|
|
|
String errMessage = "request params[coupon_order_id] error."; |
|
|
|
logger.error(errMessage); |
|
|
|
throw new MallinkException(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), errMessage); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(posOrderIdStr)) { |
|
|
|
String errMessage = "request params[pos_order_id] error."; |
|
|
|
logger.error(errMessage); |
|
|
|
throw new MallinkException(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), errMessage); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(posAmountStr)) { |
|
|
|
String errMessage = "request params[pos_amount] error."; |
|
|
|
logger.error(errMessage); |
|
|
|
throw new MallinkException(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), errMessage); |
|
|
|
} |
|
|
|
String verifyType = WxPayConstant.VERIFY_TYPE_PAY; |
|
|
|
return posService.checkCouponOrderForIndepentVerify(user, verifyType, couponOrderIdStr); |
|
|
|
return posService.checkCouponOrderForPayVerify(user, verifyType, couponOrderIdStr, posOrderIdStr, posAmountStr); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "券预核销") |
|
|
|
|