/// <summary> /// 发起接口调用成功添加日志 /// </summary> /// <param name="serviceInfo"></param> /// <param name="proStartInfo"></param> private void ProStartAddSuccessLog(BPMServiceModel serviceInfo, ProcessStartInfo proStartInfo) { if (proStartInfo != null) { if (serviceInfo.ResponseInfo != null) { serviceInfo.InterfaceLog.Status = serviceInfo.ResponseInfo.returnStatus; serviceInfo.InterfaceLog.ResponseMessage = JsonConvert.SerializeObject(serviceInfo.ResponseInfo); serviceInfo.InterfaceLog.ResponseTime = DateTime.Now; } serviceInfo.InterfaceLog.BizID = proStartInfo.BizId; serviceInfo.InterfaceLog.ProcessCode = proStartInfo.ProcessCode; serviceInfo.InterfaceLog.K2ID = proStartInfo.K2ID; serviceInfo.InterfaceLog.FormID = proStartInfo.FormId; serviceInfo.InterfaceLog.SplitProcessCode = proStartInfo.SplitProcessCode; //记录日志 _interfaceLogService.AddBPMInterfaceLog(serviceInfo.InterfaceLog); } }