1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB
C#

using HighWayIot.Log4net;
using HighWayIot.Repository.domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace HighWayIot.Repository.service
{
public class SysLogService
{
private static readonly Lazy<SysLogService> lazy = new Lazy<SysLogService>(() => new SysLogService());
public static SysLogService Instance
{
get
{
return lazy.Value;
}
}
private LogHelper log = LogHelper.Instance;
Repository<SysErrorLogEntity> _repository => new Repository<SysErrorLogEntity>("sqlserver");
/// <summary>
/// 查询所有班次信息
/// </summary>
/// <returns></returns>
public List<SysErrorLogEntity> GetShiftInfos()
{
try
{
List<SysErrorLogEntity> entity = _repository.GetList();
return entity;
}
catch (Exception ex)
{
log.Error("用户信息获取异常", ex);
return null;
}
}
}
}