/// <summary> /// 添加Job运行日志信息 /// </summary> public int AddJobExecuteLog(JobExecuteLog model) { string sql = "INSERT INTO JobExecuteLog (JobId,ExecuteTime,Success) VALUES(@JobId,@ExecuteTime,@Success)"; using (var conn = new SqlConnection(ConnectionStr.FxDb)) { conn.Open(); return(conn.Execute(sql, model)); } }
/// <summary> /// 修改Job运行日志信息 /// </summary> public int UpdateJobExecuteLog(JobExecuteLog model) { string sql = "UPDATE JobExecuteLog SET JobId=@JobId,ExecuteTime=@ExecuteTime,Success=@Success WHERE ID=@ID"; using (var conn = new SqlConnection(ConnectionStr.FxDb)) { conn.Open(); return(conn.Execute(sql, model)); } }
/// <summary> /// 添加Job运行日志信息 /// </summary> public int AddJobExecuteLog(JobExecuteLog model) { return(jobExecuteLogDAL.AddJobExecuteLog(model)); }
/// <summary> /// 修改Job运行日志信息 /// </summary> public int UpdateJobExecuteLog(JobExecuteLog model) { return(jobExecuteLogDAL.UpdateJobExecuteLog(model)); }