using Admin.Core.IRepository;
using Admin.Core.IService;
using Admin.Core.Model;
using log4net;
using System;
using System.Threading.Tasks;
namespace Admin.Core.Service
{
///
/// RecordProductFinishServices
///
public class RecordSidePanelComplateServices : BaseServices, IRecordSidePanelComplateServices
{
private static readonly log4net.ILog logHelper = LogManager.GetLogger(typeof(RecordOutStoreServices));
private readonly IBaseRepository _dal;
public RecordSidePanelComplateServices(IBaseRepository dal)
{
this._dal = dal;
base.BaseDal = dal;
}
public async Task 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;
}
}
}