|
|
@ -32,7 +32,6 @@ import au.com.royalpay.payment.core.beans.MerchantApplicationResult;
|
|
|
|
import au.com.royalpay.payment.core.exceptions.EmailException;
|
|
|
|
import au.com.royalpay.payment.core.exceptions.EmailException;
|
|
|
|
import au.com.royalpay.payment.core.exceptions.InvalidShortIdException;
|
|
|
|
import au.com.royalpay.payment.core.exceptions.InvalidShortIdException;
|
|
|
|
import au.com.royalpay.payment.core.impls.MerchantChannelApplicationManager;
|
|
|
|
import au.com.royalpay.payment.core.impls.MerchantChannelApplicationManager;
|
|
|
|
import au.com.royalpay.payment.core.impls.MerchantChannelPermissionManager;
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.core.mappers.SysClientMapper;
|
|
|
|
import au.com.royalpay.payment.core.mappers.SysClientMapper;
|
|
|
|
import au.com.royalpay.payment.core.utils.OrderExpiryRuleResolver;
|
|
|
|
import au.com.royalpay.payment.core.utils.OrderExpiryRuleResolver;
|
|
|
|
import au.com.royalpay.payment.manage.analysis.mappers.TransactionAnalysisMapper;
|
|
|
|
import au.com.royalpay.payment.manage.analysis.mappers.TransactionAnalysisMapper;
|
|
|
@ -47,9 +46,8 @@ import au.com.royalpay.payment.manage.device.core.DeviceManager;
|
|
|
|
import au.com.royalpay.payment.manage.gateway.core.GatewayMerchantApply;
|
|
|
|
import au.com.royalpay.payment.manage.gateway.core.GatewayMerchantApply;
|
|
|
|
import au.com.royalpay.payment.manage.kyc.enums.FilesAuthEnum;
|
|
|
|
import au.com.royalpay.payment.manage.kyc.enums.FilesAuthEnum;
|
|
|
|
import au.com.royalpay.payment.manage.management.sysconfig.core.impls.PermissionPartnerManagerImpl;
|
|
|
|
import au.com.royalpay.payment.manage.management.sysconfig.core.impls.PermissionPartnerManagerImpl;
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.apskyc.ApsNoticeClientMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.financial.FinancialBDConfigMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.financial.FinancialBDConfigMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.ClearingDetailMapper;
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.ClearingLogMapper;
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.ClientsOperationLogMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.ClientsOperationLogMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.LogClientSubMerchantIdMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.LogClientSubMerchantIdMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.payment.CommonSubMerchantIdMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.payment.CommonSubMerchantIdMapper;
|
|
|
@ -328,6 +326,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
private PaymentApi paymentApi;
|
|
|
|
private PaymentApi paymentApi;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private ApsConfigService apsConfigService;
|
|
|
|
private ApsConfigService apsConfigService;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private ApsNoticeClientMapper apsNoticeClientMapper;
|
|
|
|
|
|
|
|
|
|
|
|
DateTimeFormatter formatter = DateTimeFormat.forPattern("dd MMM yyyy");
|
|
|
|
DateTimeFormatter formatter = DateTimeFormat.forPattern("dd MMM yyyy");
|
|
|
|
|
|
|
|
|
|
|
@ -7160,6 +7160,21 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public JSONObject getApsKycClient(JSONObject account, String clientMoniker) {
|
|
|
|
|
|
|
|
return apsNoticeClientMapper.getApsKycClient(clientMoniker);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void updateApsKycClient(JSONObject account, JSONObject item) {
|
|
|
|
|
|
|
|
if (item.getIntValue("status") == 1) {
|
|
|
|
|
|
|
|
item.put("read_time", new Date());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
item.put("status_time", new Date());
|
|
|
|
|
|
|
|
item.put("user_id", account.getString("account_id"));
|
|
|
|
|
|
|
|
apsNoticeClientMapper.toUpdateApsKycClient(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void exportLetterOfferPDF(String clientMoniker, JSONObject manage) {
|
|
|
|
private void exportLetterOfferPDF(String clientMoniker, JSONObject manage) {
|
|
|
|
JSONObject info = convertClientLetterOfferInfo(clientMoniker);
|
|
|
|
JSONObject info = convertClientLetterOfferInfo(clientMoniker);
|
|
|
|
String pdfPath = this.getClass().getClassLoader().getResource("").getPath() + "/templates/pdf/letter_of_offer.pdf";
|
|
|
|
String pdfPath = this.getClass().getClassLoader().getResource("").getPath() + "/templates/pdf/letter_of_offer.pdf";
|
|
|
|