|
|
|
|
using HybirdFrameworkCore.Autofac.Attribute;
|
|
|
|
|
using HybirdFrameworkEntity.DbModel;
|
|
|
|
|
using HybirdFrameworkRepository.System;
|
|
|
|
|
using HybirdFrameworkRepository.UnitOfWork;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace HybirdFrameworkServices.System
|
|
|
|
|
{
|
|
|
|
|
[Scope("SingleInstance")]
|
|
|
|
|
public class SysBatteryReplaceLogServices : BaseServices<sysBatteryReplaceLog>
|
|
|
|
|
{
|
|
|
|
|
SysBatteryReplaceLogRepository _dal;
|
|
|
|
|
public SysBatteryReplaceLogServices(SysBatteryReplaceLogRepository dal)
|
|
|
|
|
{
|
|
|
|
|
this._dal = dal;
|
|
|
|
|
base.BaseDal = dal;
|
|
|
|
|
}
|
|
|
|
|
public bool AddReplaceOrser(sysBatteryReplaceLog _sysBatteryReplaceLog)
|
|
|
|
|
{
|
|
|
|
|
bool result = false;
|
|
|
|
|
if (_sysBatteryReplaceLog != null)
|
|
|
|
|
{
|
|
|
|
|
int resuklt = _dal.Insert(_sysBatteryReplaceLog);
|
|
|
|
|
if (resuklt > 0)
|
|
|
|
|
{
|
|
|
|
|
result = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|