|
|
|
@ -3500,16 +3500,21 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
if (aggregateFiles != null && aggregateFiles.size() > 0) {
|
|
|
|
|
clientFilesMapper.deleteAggreeByClientId(clientId);
|
|
|
|
|
}
|
|
|
|
|
String signatureAccountId = StringUtils.isNotBlank("account_id")?manager.getString("account_id"):manager.getString("manager_id");
|
|
|
|
|
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", fileValue);
|
|
|
|
|
fileJson.put("signature_time", new Date());
|
|
|
|
|
fileJson.put("signature_ip", manager.getString("signature_ip"));
|
|
|
|
|
fileJson.put("user_agent", manager.getString("user_agent"));
|
|
|
|
|
fileJson.put("signature_account_id", signatureAccountId);
|
|
|
|
|
fileJson.put("status", 0);
|
|
|
|
|
fileJson.put("is_valid", 1);
|
|
|
|
|
clientFilesMapper.save(fileJson);
|
|
|
|
|
logger.info(clientId + "的合同文件上传成功" + fileJson.getString("file_id"));
|
|
|
|
|
logger.info("{}合同文件上传成功,IP:{},us-agent:{},signature_id:{}",clientId,manager.getString("signature_ip"),manager.getString("user_agent"),signatureAccountId);
|
|
|
|
|
JSONObject file = new JSONObject();
|
|
|
|
|
file.put("file_id", fileJson.getString("file_id"));
|
|
|
|
|
file.put("file_value", fileJson.getString("file_value"));
|
|
|
|
|