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.
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using Durkee.Mes.Api.Model;
|
|
using Microsoft.Extensions.Logging;
|
|
using Microsoft.IdentityModel.Logging;
|
|
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Durkee.Mes.Api.Repository.service.Impl
|
|
{
|
|
public class BaseBomInfoServiceImpl : IBaseBomInfoService
|
|
{
|
|
private readonly ILogger<BaseBomInfoServiceImpl> _logger;
|
|
|
|
private readonly Repository<BaseBomInfo> _bomInfoRepository;
|
|
public BaseBomInfoServiceImpl(ILogger<BaseBomInfoServiceImpl> logger,Repository<BaseBomInfo> bomInfoRepository)
|
|
{
|
|
_logger = logger;
|
|
_bomInfoRepository = bomInfoRepository;
|
|
}
|
|
|
|
public List<BaseBomInfo> GetBomInfos()
|
|
{
|
|
try
|
|
{
|
|
var info = _bomInfoRepository.GetList();
|
|
return info;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
//logHelper.Error("获取BOM集合异常", ex);
|
|
_logger.LogError($"获取BOM集合异常:{ex.Message}");
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|