fix 三级商户退款

master
luoyang 6 years ago
parent 89108472b8
commit 4e0e9af3ac

@ -221,7 +221,8 @@ public class RefundServiceImpl implements RefundService, ApplicationEventPublish
if (type == OperatorType.PARTNER) {
int accountClientId = partnerAccount.getIntValue("client_id");
Assert.isTrue(accountClientId == client.getIntValue("client_id") || accountClientId == client.getIntValue("parent_client_id"),
Assert.isTrue(accountClientId == client.getIntValue("client_id") || accountClientId == client.getIntValue("parent_client_id")
||clientManager.listLevel3Client(accountClientId).contains(client.getIntValue("parent_client_id")),
"This order is not belong to current merchant");
operator.put("operator_id", partnerAccount.getString("account_id"));
operator.put("operator", partnerAccount.getString("display_name"));

Loading…
Cancel
Save