[R]KCY认证Web端开发

master
liuxinxin 5 years ago
parent 4fff0e0de6
commit 3c093c8857

@ -258,11 +258,6 @@ public class KycServiceImpl implements KycService {
fileComp.put("type", 2);
fileComp.put("id_type", account.getString("id_type"));
clientComplianceCompanyMapper.save(fileComp);
clientFilesMapper.updateFilesAuthStatus(client.getIntValue("client_id"),
FilesAuthEnum.COMMIT_OPR.getAfterStatus(),
FilesAuthEnum.COMMIT_OPR.getBeforeStatus(),
FilesAuthEnum.COMMIT_OPR.getAuthType("kyc"));
} else if (fileComp.getIntValue("status") == 2 || fileComp.getIntValue("status") == 9) {
fileComp.put("status", 0);
fileComp.put("submit_time", new Date());
@ -271,13 +266,13 @@ public class KycServiceImpl implements KycService {
fileComp.put("id_type", account.getString("id_type"));
fileComp.put("bd_handle", account.getString("bd_handle"));
clientComplianceCompanyMapper.update(fileComp);
clientFilesMapper.updateFilesAuthStatus(client.getIntValue("client_id"),
FilesAuthEnum.COMMIT_OPR.getAfterStatus(),
FilesAuthEnum.COMMIT_OPR.getBeforeStatus(),
FilesAuthEnum.COMMIT_OPR.getAuthType("kyc"));
} else {
throw new BadRequestException("please do not repeat submission");
}
clientFilesMapper.updateFilesAuthStatus(client.getIntValue("client_id"),
FilesAuthEnum.COMMIT_OPR.getAfterStatus(),
FilesAuthEnum.COMMIT_OPR.getBeforeStatus(),
FilesAuthEnum.COMMIT_OPR.getAuthType("kyc"));
if (account.containsKey("account_id")) {
signInAccountService.clearAccountCache(account.getString("account_id"));
}

@ -3663,10 +3663,6 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
fileComp.put("source", sourceEnum);
fileComp.put("commit_by_id", account.getString("account_id"));
clientComplianceCompanyMapper.save(fileComp);
clientFilesMapper.updateFilesAuthStatus(client.getIntValue("client_id"),
FilesAuthEnum.COMMIT_OPR.getAfterStatus(),
FilesAuthEnum.COMMIT_OPR.getBeforeStatus(),
FilesAuthEnum.COMMIT_OPR.getAuthType("compliance"));
} else if (fileComp.getIntValue("status") == 2) {
fileComp.put("status", 0);
fileComp.put("submit_time", new Date());
@ -3676,13 +3672,13 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
fileComp.put("source", sourceEnum);
fileComp.put("commit_by_id", account.getString("account_id"));
clientComplianceCompanyMapper.update(fileComp);
clientFilesMapper.updateFilesAuthStatus(client.getIntValue("client_id"),
FilesAuthEnum.COMMIT_OPR.getAfterStatus(),
FilesAuthEnum.COMMIT_OPR.getBeforeStatus(),
FilesAuthEnum.COMMIT_OPR.getAuthType("compliance"));
} else {
throw new BadRequestException("please do not repeat submission");
}
clientFilesMapper.updateFilesAuthStatus(client.getIntValue("client_id"),
FilesAuthEnum.COMMIT_OPR.getAfterStatus(),
FilesAuthEnum.COMMIT_OPR.getBeforeStatus(),
FilesAuthEnum.COMMIT_OPR.getAuthType("compliance"));
signInAccountService.clearAccountCache(account.getString("account_id"));
}

Loading…
Cancel
Save