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 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 RecordBackPanelComplateServices : BaseServices<RecordBackPanelComplate>, IRecordBackPanelComplateServices
|
|
|
|
|
{
|
|
|
|
|
private static readonly log4net.ILog logHelper = LogManager.GetLogger(typeof(RecordBackPanelComplate));
|
|
|
|
|
private readonly IBaseRepository<RecordBackPanelComplate> _dal;
|
|
|
|
|
public RecordBackPanelComplateServices(IBaseRepository<RecordBackPanelComplate> dal)
|
|
|
|
|
{
|
|
|
|
|
this._dal = dal;
|
|
|
|
|
base.BaseDal = dal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<bool> InsertBackPanelCimplate(RecordBackPanelComplate sidePanelComplate)
|
|
|
|
|
{
|
|
|
|
|
bool result = false;
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
int r =await _dal.AddAsync(sidePanelComplate);
|
|
|
|
|
if (r > 0) result=true;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
logHelper.Error("完成记录添加异常", ex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|