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.
Aucma.Scada/HighWayIot.Repository/service/Impl/SysUserInfoServiceImpl.cs

40 lines
1.1 KiB
C#

using Aucma.Scada.Model.domain;
using HighWayIot.Log4net;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace HighWayIot.Repository.service.Impl
{
1 year ago
public class SysUserInfoServiceImpl : ISysUserInfoService
{
private LogHelper log = LogHelper.Instance;
Repository<SysUserInfo> _repository => new Repository<SysUserInfo>("mes");
public List<SysUserInfo> GetUserInfos()
{
try
{
List<SysUserInfo> deviceInfo = _repository.GetList();
return deviceInfo;
}
catch (Exception ex)
{
log.Error("用户信息获取异常", ex);
return null;
}
}
/// <summary>
/// 获取夹具状态
/// </summary>
/// <returns></returns>
public Task<List<ModeStatusView>> StatisticalModelStatus()
{
string sql = "select * from table (scada_xk_fp_01('') )";
return _repository.Context.SqlQueryable<ModeStatusView>(sql).ToListAsync();
}
}
}