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/Admin.Core.Service/Service_New/RecordSidePanelComplateServ...

41 lines
1.2 KiB
C#

using Admin.Core.IRepository;
using Admin.Core.IService;
using Admin.Core.Model;
using log4net;
using System;
using System.Threading.Tasks;
namespace Admin.Core.Service
{
/// <summary>
/// RecordProductFinishServices
/// </summary>
public class RecordSidePanelComplateServices : BaseServices<RecordSidePanelComplate>, IRecordSidePanelComplateServices
{
private static readonly log4net.ILog logHelper = LogManager.GetLogger(typeof(RecordOutStoreServices));
private readonly IBaseRepository<RecordSidePanelComplate> _dal;
public RecordSidePanelComplateServices(IBaseRepository<RecordSidePanelComplate> dal)
{
this._dal = dal;
base.BaseDal = dal;
}
public async Task<bool> InsertSidePanelCimplate(RecordSidePanelComplate sidePanelComplate)
{
bool result = false;
try
{
int r =await _dal.AddAsync(sidePanelComplate);
if (r > 0) result=true;
}
catch (Exception ex)
{
logHelper.Error("完成记录添加异常", ex);
}
return result;
}
}
}