QSMP.Web/Areas/System/Controllers/LogController.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using QSMP.Web.Controllers;
using QSMP.Web.Filters;
using QSMP.Logic.Sys;
using QSMP.Entity.Sys;
using QSMP.Utility.Extension;
using QSMP.Utility.ResponseModels;
using QSMP.Utility.Format;
namespace QSMP.Web.Areas.System.Controllers
{
public class LogController : BaseController
{
private LogLogic logLogic;
public LogController()
{
logLogic = new LogLogic();
}
[HttpGet, AuthorizeChecked]
public ActionResult Index()
{
return View();
}
[HttpPost, AuthorizeChecked]
public ActionResult Index(int pageIndex, int pageSize, string queryDate, string keyWord)
{
DateTime limitDate = DateTime.Now.StartDateTime();
if (!queryDate.IsNullOrEmpty())
{
switch (queryDate)
{
case "7":
limitDate = DateTime.Now.AddDays(-7).StartDateTime();
break;
case "30":
limitDate = DateTime.Now.AddMonths(-1).StartDateTime();
break;
case "90":
limitDate = DateTime.Now.AddMonths(-3).StartDateTime();
break;
default:
limitDate = DateTime.Now.StartDateTime();
break;
}
}
int totalCount = 0;
var pageData = logLogic.GetList(pageIndex, pageSize, limitDate, keyWord,ref totalCount);
var result = new LayPadding<SysLog>()
{
result = true,
msg = "success",
list = pageData,
后面还有 41 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
