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

30 lines
785 B
C#

using Aucma.Scada.Model.domain;
using HighWayIot.Log4net;
using System;
using System.Collections.Generic;
namespace HighWayIot.Repository.service.Impl
{
public class BaseMaterialInfoServiceImpl : IBaseMaterialInfoService
{
6 months ago
Repository<BaseMaterialInfo> _baseMaterialInfo => new Repository<BaseMaterialInfo>("mes");
private LogHelper logHelper = LogHelper.Instance;
public List<BaseMaterialInfo> getAllInfos()
{
try
{
6 months ago
var info = _baseMaterialInfo.GetList(x => x.MaterialSubclass == "200");
return info;
}
catch (Exception ex)
{
logHelper.Error("获取集合异常", ex);
return null;
}
}
}
}