|
|
@ -154,7 +154,7 @@ public class RefundServiceImpl implements RefundService, ApplicationEventPublish
|
|
|
|
OperatorType type = account != null ? OperatorType.PARTNER : OperatorType.MANAGER;
|
|
|
|
OperatorType type = account != null ? OperatorType.PARTNER : OperatorType.MANAGER;
|
|
|
|
boolean requireAudit = type == OperatorType.PARTNER && PartnerRole.getRole(account.getIntValue("role")) == PartnerRole.CASHIER
|
|
|
|
boolean requireAudit = type == OperatorType.PARTNER && PartnerRole.getRole(account.getIntValue("role")) == PartnerRole.CASHIER
|
|
|
|
&& clientConfig.getBooleanValue("enable_refund_auth");
|
|
|
|
&& clientConfig.getBooleanValue("enable_refund_auth");
|
|
|
|
logger.debug("applyer type=" + type + "; require audit=" + requireAudit);
|
|
|
|
logger.debug("applyer type={}; require audit={}", type, requireAudit);
|
|
|
|
|
|
|
|
|
|
|
|
paymentApi.clientRefundBalanceCheck(clientId, orderId, currency, feeAmount);
|
|
|
|
paymentApi.clientRefundBalanceCheck(clientId, orderId, currency, feeAmount);
|
|
|
|
Assert.notNull(order, "Order Not exists");
|
|
|
|
Assert.notNull(order, "Order Not exists");
|
|
|
@ -180,6 +180,11 @@ public class RefundServiceImpl implements RefundService, ApplicationEventPublish
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public JSONObject cancelOrder(JSONObject partnerAccount, String orderId) {
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public JSONObject newRefundOrder(String orderId, BigDecimal fee, boolean original, String remark, JSONObject partnerAccount, JSONObject manager) {
|
|
|
|
public JSONObject newRefundOrder(String orderId, BigDecimal fee, boolean original, String remark, JSONObject partnerAccount, JSONObject manager) {
|
|
|
|
JSONObject order = orderMapper.getOrderDetail(orderId);
|
|
|
|
JSONObject order = orderMapper.getOrderDetail(orderId);
|
|
|
@ -229,7 +234,7 @@ public class RefundServiceImpl implements RefundService, ApplicationEventPublish
|
|
|
|
}
|
|
|
|
}
|
|
|
|
boolean requireAudit = type == OperatorType.PARTNER && PartnerRole.getRole(partnerAccount.getIntValue("role")) == PartnerRole.CASHIER
|
|
|
|
boolean requireAudit = type == OperatorType.PARTNER && PartnerRole.getRole(partnerAccount.getIntValue("role")) == PartnerRole.CASHIER
|
|
|
|
&& clientConfig.getBooleanValue("enable_refund_auth");
|
|
|
|
&& clientConfig.getBooleanValue("enable_refund_auth");
|
|
|
|
logger.debug("applyer type={}; require audit={}",type, requireAudit);
|
|
|
|
logger.debug("applyer type={}; require audit={}", type, requireAudit);
|
|
|
|
return paymentApi.refundOrder(null, orderId, null, amount, remark, operator, type, requireAudit);
|
|
|
|
return paymentApi.refundOrder(null, orderId, null, amount, remark, operator, type, requireAudit);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -439,7 +444,7 @@ public class RefundServiceImpl implements RefundService, ApplicationEventPublish
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public JSONObject listUnionAllApply(JSONObject params, PageBounds pagination) {
|
|
|
|
public JSONObject listUnionAllApply(JSONObject params, PageBounds pagination) {
|
|
|
|
if(params.get("client_id")==null && params.get("client_ids")==null){
|
|
|
|
if (params.get("client_id") == null && params.get("client_ids") == null) {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return PageListUtils.buildPageListResult(refundMapper.listUnionAllApply(params, pagination));
|
|
|
|
return PageListUtils.buildPageListResult(refundMapper.listUnionAllApply(params, pagination));
|
|
|
|