|
|
|
@ -3601,8 +3601,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
}
|
|
|
|
|
int clientId = client.getIntValue("client_id");
|
|
|
|
|
try {
|
|
|
|
|
updateSysClientFilesForWaitCompliance(manager, clientId, CLIENT_BANK_FILE, filesInfo.getFile_bank_info(),fileResult);
|
|
|
|
|
updateSysClientFilesForWaitCompliance(manager, clientId, CLIENT_ID_FILE, filesInfo.getFile_id_info(),fileResult);
|
|
|
|
|
updateFilesForWaitAuditWithoutRepeat(manager, clientId, CLIENT_BANK_FILE, filesInfo.getFile_bank_info(),fileResult);
|
|
|
|
|
updateFilesForWaitAuditWithoutRepeat(manager, clientId, CLIENT_ID_FILE, filesInfo.getFile_id_info(),fileResult);
|
|
|
|
|
updateSysClientFilesForWaitCompliance(manager, clientId, KYC_UTILITY_BILL_FILE, filesInfo.getUtility_bill_info(),fileResult);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
logger.error("上传KYC文件失败", e);
|
|
|
|
@ -3989,6 +3989,36 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void updateFilesForWaitAuditWithoutRepeat(JSONObject manager, int clientId, String fileType, String fileValue, List<JSONObject> fileResult) {
|
|
|
|
|
if (fileValue != null) {
|
|
|
|
|
String[] values = fileValue.split(",");
|
|
|
|
|
List<JSONObject> repetitiveFiles = clientFilesMapper.findRepetitiveFiles(clientId,fileType);
|
|
|
|
|
for (String value : values) {
|
|
|
|
|
JSONObject fileJson = new JSONObject();
|
|
|
|
|
fileJson.put("client_id", clientId);
|
|
|
|
|
fileJson.put("last_update_date", new Date());
|
|
|
|
|
fileJson.put("last_update_by", manager.getString("display_name"));
|
|
|
|
|
fileJson.put("file_name", fileType);
|
|
|
|
|
fileJson.put("file_value", value);
|
|
|
|
|
fileJson.put("status", 0);
|
|
|
|
|
fileJson.put("is_valid", 1);
|
|
|
|
|
clientFilesMapper.save(fileJson);
|
|
|
|
|
logger.info(clientId + "的fileType文件上传成功" + fileJson.getString("file_id"));
|
|
|
|
|
JSONObject file = new JSONObject();
|
|
|
|
|
file.put("file_id", fileJson.getString("file_id"));
|
|
|
|
|
file.put("file_value", fileJson.getString("file_value"));
|
|
|
|
|
fileResult.add(file);
|
|
|
|
|
}
|
|
|
|
|
if(repetitiveFiles != null){
|
|
|
|
|
for(JSONObject repetitiveFile : repetitiveFiles){
|
|
|
|
|
clientFilesMapper.deleteByClientAndFileId(repetitiveFile.getString("file_id"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void updateAggregateFilesForWaitCompliance(JSONObject manager, int clientId, String fileType, String fileValue, List<JSONObject> fileResult) {
|
|
|
|
|
if (fileValue != null) {
|
|
|
|
|
List<JSONObject> passAggregateFiles = clientFilesMapper.findClientPassAggreeFile(clientId);
|
|
|
|
|