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 Microsoft.Extensions.Logging;
|
|
|
|
|
using SlnMesnac.Model.domain;
|
|
|
|
|
using SlnMesnac.Repository.service.@base;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace SlnMesnac.Repository.service.Impl
|
|
|
|
|
{
|
|
|
|
|
public class AGVSettingServiceImpl : BaseServiceImpl<AGVSetting>, IAGVSettingService
|
|
|
|
|
{
|
|
|
|
|
private ILogger<AGVSettingServiceImpl> _logger;
|
|
|
|
|
public AGVSettingServiceImpl(Repository<AGVSetting> repository, ILogger<AGVSettingServiceImpl> logger) : base(repository)
|
|
|
|
|
{
|
|
|
|
|
_logger = logger;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<AGVSetting> GetAllAgvSetting()
|
|
|
|
|
{
|
|
|
|
|
List<AGVSetting> agvSettingList = null;
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
agvSettingList = base._rep.GetList();
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
_logger.LogError($"所有AGV设置获取错误:{ex.Message}");
|
|
|
|
|
}
|
|
|
|
|
return agvSettingList;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|