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.
|
|
|
|
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.Impl
|
|
|
|
|
{
|
|
|
|
|
public class BaseSysUserInfoServiceImpl : ISysUserInfoService
|
|
|
|
|
{
|
|
|
|
|
private LogHelper log = LogHelper.Instance;
|
|
|
|
|
Repository<SysUserInfo> _repository => new Repository<SysUserInfo>("mysql");
|
|
|
|
|
|
|
|
|
|
public List<SysUserInfo> GetUserInfos()
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
List<SysUserInfo> deviceInfo = _repository.GetList();
|
|
|
|
|
return deviceInfo;
|
|
|
|
|
}catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
log.Error("用户信息获取异常", ex);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|