|
|
|
@ -26,6 +26,7 @@ import au.com.royalpay.payment.manage.device.core.DeviceManager;
|
|
|
|
|
import au.com.royalpay.payment.manage.management.sysconfig.core.impls.PermissionPartnerManagerImpl;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.financial.FinancialBDConfigMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.*;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.payment.CommonSubMerchantIdMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.payment.TransactionMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.redpack.ActClientInvitationCodeMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.risk.RiskAttentionMerchantsMapper;
|
|
|
|
@ -277,6 +278,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
@Resource
|
|
|
|
|
private MerchantSignInfoMapper merchantSignInfoMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private CommonSubMerchantIdMapper commonSubMerchantIdMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private Locker locker;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -372,12 +375,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.equalsIgnoreCase(clientMoniker, PlatformEnvironment.getEnv().getTestMoniker())) {
|
|
|
|
|
String subMerchantId = client.getString("sub_merchant_id");
|
|
|
|
|
String tempSubMerchantIds = sysConfigManager.getSysConfig().getString("temp_sub_mch_id");
|
|
|
|
|
String tempSubMchSource = sysConfigManager.getSysConfig().getString("temp_sub_mch_id_source");
|
|
|
|
|
tempSubMchSource = tempSubMchSource == null ? "" : tempSubMchSource;
|
|
|
|
|
if (subMerchantId != null && tempSubMerchantIds != null && tempSubMerchantIds.contains(subMerchantId)
|
|
|
|
|
&& !tempSubMchSource.contains(client.getString("client_moniker"))) {
|
|
|
|
|
client.put("temp_sub_merchant", true);
|
|
|
|
|
if (subMerchantId != null) {
|
|
|
|
|
client.put("temp_sub_merchant", checkSubMerchantIdInCommonPool(subMerchantId));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (client.getIntValue("approve_result") == 1
|
|
|
|
@ -526,9 +525,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
int authDays = PlatformEnvironment.getEnv().authDays();// 快速自助开通申请有效期
|
|
|
|
|
for (JSONObject partner : partners) {
|
|
|
|
|
String subMerchantId = partner.getString("sub_merchant_id");
|
|
|
|
|
if (subMerchantId != null && tempSubMchId != null && tempSubMchId.contains(subMerchantId)
|
|
|
|
|
&& !tempSubMchSource.contains(partner.getString("client_moniker"))) {
|
|
|
|
|
partner.put("temp_sub_merchant", true);
|
|
|
|
|
if (subMerchantId != null ) {
|
|
|
|
|
partner.put("temp_sub_merchant", checkSubMerchantIdInCommonPool(subMerchantId));
|
|
|
|
|
}
|
|
|
|
|
if (partner.getIntValue("approve_result") == 2) {
|
|
|
|
|
partner.put("expiry_time", DateUtils.addDays(partner.getDate("approve_time"), authDays));
|
|
|
|
@ -4911,6 +4909,12 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Cacheable("common_sub_mch_id:")
|
|
|
|
|
public boolean checkSubMerchantIdInCommonPool(String subMerchantId) {
|
|
|
|
|
JSONObject json = commonSubMerchantIdMapper.find(subMerchantId);
|
|
|
|
|
return json != null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public JSONObject comListPartnerSelection(JSONObject manager, PartnerQuery query) {
|
|
|
|
|
JSONObject params = query.toJsonParam();
|
|
|
|
@ -4926,9 +4930,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
int authDays = PlatformEnvironment.getEnv().authDays();// 快速自助开通申请有效期
|
|
|
|
|
for (JSONObject partner : partners) {
|
|
|
|
|
String subMerchantId = partner.getString("sub_merchant_id");
|
|
|
|
|
if (subMerchantId != null && tempSubMchId != null && tempSubMchId.contains(subMerchantId)
|
|
|
|
|
&& !tempSubMchSource.contains(partner.getString("client_moniker"))) {
|
|
|
|
|
partner.put("temp_sub_merchant", true);
|
|
|
|
|
if (subMerchantId != null) {
|
|
|
|
|
partner.put("temp_sub_merchant", checkSubMerchantIdInCommonPool(subMerchantId));
|
|
|
|
|
}
|
|
|
|
|
if (partner.getIntValue("approve_result") == 2) {
|
|
|
|
|
partner.put("expiry_time", DateUtils.addDays(partner.getDate("approve_time"), authDays));
|
|
|
|
|