|
|
|
@ -16,6 +16,7 @@ import au.com.royalpay.payment.channels.yeepay.runtime.YeePayClient;
|
|
|
|
|
import au.com.royalpay.payment.core.PaymentChannelApi;
|
|
|
|
|
import au.com.royalpay.payment.core.exceptions.EmailException;
|
|
|
|
|
import au.com.royalpay.payment.core.exceptions.InvalidShortIdException;
|
|
|
|
|
import au.com.royalpay.payment.core.mappers.SysClientMapper;
|
|
|
|
|
import au.com.royalpay.payment.core.utils.OrderExpiryRuleResolver;
|
|
|
|
|
import au.com.royalpay.payment.manage.analysis.mappers.TransactionAnalysisMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.appclient.beans.AppClientBean;
|
|
|
|
@ -271,6 +272,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
@Resource
|
|
|
|
|
private FinancialSurchargeAccountDetailMapper financialSurchargeAccountDetailMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private SysClientMapper sysClientMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private Locker locker;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -414,6 +417,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
client.put("client_pay_type",client.getString("client_pay_type").split(","));
|
|
|
|
|
client.put("client_pay_desc",client.getString("client_pay_desc").split(","));
|
|
|
|
|
}
|
|
|
|
|
if (StringUtils.isNotBlank(client.getString("parent_client_id"))
|
|
|
|
|
&& sysClientMapper.childClientId(client.getIntValue("client_id")).size() > 0) {
|
|
|
|
|
client.put("level2_client", 1);
|
|
|
|
|
}
|
|
|
|
|
return client;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -3216,6 +3223,18 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
clientMapper.update(client);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void switchChildEachRefund(JSONObject manager, String clientMoniker, boolean childEachRefund) {
|
|
|
|
|
JSONObject client = getClientInfoByMoniker(clientMoniker);
|
|
|
|
|
if (client == null) {
|
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
|
}
|
|
|
|
|
checkOrgPermission(manager, client);
|
|
|
|
|
client.put("child_each_refund", childEachRefund);
|
|
|
|
|
clientMapper.update(client);
|
|
|
|
|
clientInfoCacheSupport.clearClientCache(client.getIntValue("client_id"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void changePaymentPage(JSONObject account, String paypad_version) {
|
|
|
|
|
int clientId = account.getIntValue("client_id");
|
|
|
|
|