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/BaseTeamMembersServiceImpl.cs

36 lines
989 B
C#

8 months ago
using Aucma.Scada.Model.domain;
using HighWayIot.Config;
using HighWayIot.Log4net;
using System;
using System.Collections.Generic;
namespace HighWayIot.Repository.service.Impl
{
public class BaseTeamMembersServiceImpl : IBaseTeamMembersServices
{
Repository<BaseTeamMembers> _repository => new Repository<BaseTeamMembers>("mes");
private LogHelper logHelper = LogHelper.Instance;
private AppConfig appConfig = AppConfig.Instance;
/// <summary>
/// 查询班组
/// </summary>
public List<BaseTeamMembers> getTeam()
{
try
{
List<BaseTeamMembers> list = null;
list = _repository.AsQueryable().Where(d => d.ProductLineCode == appConfig.ProductlineCode && d.TeamCode.Contains(appConfig.TeamConfig)).ToList();
return list;
}
catch (Exception)
{
return null;
}
}
}
}