|
|
@ -3637,6 +3637,36 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
|
|
|
|
public void uploadAuthFilesManager(JSONObject manager, String clientMoniker, ClientAuthFilesInfo filesInfo) {
|
|
|
|
|
|
|
|
JSONObject client = getClientInfoByMoniker(clientMoniker);
|
|
|
|
|
|
|
|
if (client == null) {
|
|
|
|
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
int clientId = client.getIntValue("client_id");
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
updateSysClientFiles(manager, clientId, CLIENT_AGREE_FILE, filesInfo.getFile_agreement_info());
|
|
|
|
|
|
|
|
updateSysClientFiles(manager, clientId, CLIENT_APPLY_FILE, filesInfo.getFile_apply_info());
|
|
|
|
|
|
|
|
updateSysClientFiles(manager, clientId, CLIENT_BANK_FILE, filesInfo.getFile_bank_info());
|
|
|
|
|
|
|
|
updateSysClientFiles(manager, clientId, CLIENT_COMPANY_FILE, filesInfo.getFile_company_info());
|
|
|
|
|
|
|
|
updateSysClientFiles(manager, clientId, CLIENT_ID_FILE, filesInfo.getFile_id_info());
|
|
|
|
|
|
|
|
updateSysClientFiles(manager, clientId, KYC_UTILITY_BILL_FILE, filesInfo.getUtility_bill_info());
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
logger.error("上传合规文件失败", e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// boolean clientSource = client.getIntValue("source") == 4 ? true : false;
|
|
|
|
|
|
|
|
// if (filesInfo.getAuthStatus() == 1 && clientSource) {
|
|
|
|
|
|
|
|
// client.put("approve_result", 3);
|
|
|
|
|
|
|
|
// clientMapper.update(client);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
JSONObject params = filesInfo.toIdInfoJson();
|
|
|
|
|
|
|
|
if (params != null) {
|
|
|
|
|
|
|
|
params.put("display_name", manager.getString("display_name"));
|
|
|
|
|
|
|
|
clientApproveIdInfo(params, client);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@Transactional
|
|
|
|
@Transactional
|
|
|
|
public void uploadKycFiles(JSONObject manager, String clientMoniker, ClientKycFilesInfo filesInfo) {
|
|
|
|
public void uploadKycFiles(JSONObject manager, String clientMoniker, ClientKycFilesInfo filesInfo) {
|
|
|
|