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.
39 lines
1.1 KiB
C#
39 lines
1.1 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>
|
|
/// RecordInstoreRepository
|
|
/// </summary>
|
|
public class RecordOutStoreServices : BaseServices<RecordOutStore>, IRecordOutStoreServices
|
|
{
|
|
private static readonly log4net.ILog logHelper = LogManager.GetLogger(typeof(RecordOutStoreServices));
|
|
private readonly IBaseRepository<RecordOutStore> _dal;
|
|
public RecordOutStoreServices(IBaseRepository<RecordOutStore> dal)
|
|
{
|
|
this._dal = dal;
|
|
base.BaseDal = dal;
|
|
}
|
|
|
|
public async Task<bool> InsertReocrdOutStoreService(RecordOutStore recordOutstore)
|
|
{
|
|
bool result = false;
|
|
try
|
|
{
|
|
int r =await _dal.AddAsync(recordOutstore);
|
|
if (r > 0) { result = true; }
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
logHelper.Error("出库记录添加异常", ex);
|
|
}
|
|
|
|
return result;
|
|
}
|
|
}
|
|
} |