fix 三级商户退款

master
luoyang 6 years ago
parent eae04120d8
commit 68f0586c4a

@ -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