|
|
|
@ -3173,18 +3173,19 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional
|
|
|
|
|
public void uploadAuthFilesForWaitCompliance(JSONObject manager, String clientMoniker, ClientAuthFilesInfo filesInfo) {
|
|
|
|
|
public List<JSONObject> uploadAuthFilesForWaitCompliance(JSONObject manager, String clientMoniker, ClientAuthFilesInfo filesInfo) {
|
|
|
|
|
JSONObject client = getClientInfoByMoniker(clientMoniker);
|
|
|
|
|
List<JSONObject> fileResult = new ArrayList<>();
|
|
|
|
|
if (client == null) {
|
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
|
}
|
|
|
|
|
int clientId = client.getIntValue("client_id");
|
|
|
|
|
try {
|
|
|
|
|
updateSysClientFilesForWaitCompliance(manager, clientId, CLIENT_AGREE_FILE, filesInfo.getFile_agreement_info());
|
|
|
|
|
updateSysClientFilesForWaitCompliance(manager, clientId, CLIENT_APPLY_FILE, filesInfo.getFile_apply_info());
|
|
|
|
|
updateSysClientFilesForWaitCompliance(manager, clientId, CLIENT_BANK_FILE, filesInfo.getFile_bank_info());
|
|
|
|
|
updateSysClientFilesForWaitCompliance(manager, clientId, CLIENT_COMPANY_FILE, filesInfo.getFile_company_info());
|
|
|
|
|
updateSysClientFilesForWaitCompliance(manager, clientId, CLIENT_ID_FILE, filesInfo.getFile_id_info());
|
|
|
|
|
updateSysClientFilesForWaitCompliance(manager, clientId, CLIENT_AGREE_FILE, filesInfo.getFile_agreement_info(),fileResult);
|
|
|
|
|
updateSysClientFilesForWaitCompliance(manager, clientId, CLIENT_APPLY_FILE, filesInfo.getFile_apply_info(),fileResult);
|
|
|
|
|
updateSysClientFilesForWaitCompliance(manager, clientId, CLIENT_BANK_FILE, filesInfo.getFile_bank_info(),fileResult);
|
|
|
|
|
updateSysClientFilesForWaitCompliance(manager, clientId, CLIENT_COMPANY_FILE, filesInfo.getFile_company_info(),fileResult);
|
|
|
|
|
updateSysClientFilesForWaitCompliance(manager, clientId, CLIENT_ID_FILE, filesInfo.getFile_id_info(),fileResult);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
logger.error("上传合规文件失败", e);
|
|
|
|
|
}
|
|
|
|
@ -3193,6 +3194,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
// client.put("approve_result", 3);
|
|
|
|
|
// clientMapper.update(client);
|
|
|
|
|
// }
|
|
|
|
|
return fileResult;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -3217,13 +3219,14 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
if(fileComp == null) {
|
|
|
|
|
fileComp = new JSONObject();
|
|
|
|
|
fileComp.put("client_id",client.getIntValue("client_id"));
|
|
|
|
|
fileComp.put("create_time",new Date());
|
|
|
|
|
fileComp.put("submit_time",new Date());
|
|
|
|
|
fileComp.put("status",0);
|
|
|
|
|
fileComp.put("commit_by_id",account.getString("account_id"));
|
|
|
|
|
clientComplianceCompanyMapper.save(fileComp);
|
|
|
|
|
clientFilesMapper.updateBeforeCompliance(client.getIntValue("client_id"));
|
|
|
|
|
} else {
|
|
|
|
|
fileComp.put("status",0);
|
|
|
|
|
fileComp.put("submit_time",new Date());
|
|
|
|
|
fileComp.put("commit_by_id",account.getString("account_id"));
|
|
|
|
|
clientComplianceCompanyMapper.update(fileComp);
|
|
|
|
|
clientFilesMapper.updateBeforeCompliance(client.getIntValue("client_id"));
|
|
|
|
@ -3282,7 +3285,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void updateSysClientFilesForWaitCompliance(JSONObject manager, int clientId, String fileType, String fileValue) {
|
|
|
|
|
public void updateSysClientFilesForWaitCompliance(JSONObject manager, int clientId, String fileType, String fileValue,List<JSONObject> fileResult) {
|
|
|
|
|
if (fileValue != null) {
|
|
|
|
|
String[] values = fileValue.split(",");
|
|
|
|
|
for (String value : values) {
|
|
|
|
@ -3291,11 +3294,15 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
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", fileValue);
|
|
|
|
|
fileJson.put("file_value", value);
|
|
|
|
|
fileJson.put("status", 0);
|
|
|
|
|
fileJson.put("is_valid", 1);
|
|
|
|
|
clientFilesMapper.save(fileJson);
|
|
|
|
|
logger.info(clientId + "的fileType文件上传成功");
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|