This commit is contained in:
62
Epost.BLL/Sys_operate_logBLL.cs
Normal file
62
Epost.BLL/Sys_operate_logBLL.cs
Normal file
@ -0,0 +1,62 @@
|
||||
using Epost.DAL;
|
||||
using Epost.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Epost.BLL
|
||||
{
|
||||
public class Sys_operate_logBLL
|
||||
{
|
||||
|
||||
|
||||
Sys_operate_logDAL dal = new Sys_operate_logDAL();
|
||||
|
||||
#region 分页获取订单表列表
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public List<Sys_operate_logModel> GetLogListByPage(string strWhere, string orderby, int pageSize, int pageIndex, out int recordCount)
|
||||
{
|
||||
int startIndex = 0;
|
||||
int endIndex = 0;
|
||||
if (pageIndex <= 0)
|
||||
pageIndex = 1;
|
||||
//计算查询的开始行数与结束行数
|
||||
startIndex = (pageIndex - 1) * pageSize + 1;
|
||||
endIndex = pageIndex * pageSize;
|
||||
return dal.GetLogListByPage(strWhere, orderby, startIndex, endIndex, out recordCount);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取日志列表
|
||||
public List<Sys_operate_logModel> GetLogDetail(int mid)
|
||||
{
|
||||
return dal.GetLogDetail(mid);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
#region 添加日志
|
||||
public bool InsertLog(string title, string method, string operate_url, string operate_param, string json_result, int status, string error_msg, DateTime addtime)
|
||||
{
|
||||
Sys_operate_logModel logmodel = new Sys_operate_logModel();
|
||||
logmodel.title = title;
|
||||
logmodel.method = method;
|
||||
logmodel.operate_url = operate_url;
|
||||
logmodel.operate_param = operate_param;
|
||||
logmodel.json_result = json_result;
|
||||
logmodel.status = status;
|
||||
logmodel.error_msg = error_msg;
|
||||
logmodel.addtime = addtime;
|
||||
return dal.InsertLogDetail(logmodel);
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user