You can not 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 Entity.DbModel;
|
|
|
|
|
using HybirdFrameworkCore.Autofac.Attribute;
|
|
|
|
|
using Repository.System;
|
|
|
|
|
|
|
|
|
|
namespace Service.System;
|
|
|
|
|
|
|
|
|
|
[Scope("SingleInstance")]
|
|
|
|
|
public class SysBatteryReplaceLogServices : BaseServices<sysBatteryReplaceLog>
|
|
|
|
|
{
|
|
|
|
|
private readonly SysBatteryReplaceLogRepository _dal;
|
|
|
|
|
|
|
|
|
|
public SysBatteryReplaceLogServices(SysBatteryReplaceLogRepository dal)
|
|
|
|
|
{
|
|
|
|
|
_dal = dal;
|
|
|
|
|
BaseDal = dal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool AddReplaceOrser(sysBatteryReplaceLog _sysBatteryReplaceLog)
|
|
|
|
|
{
|
|
|
|
|
var result = false;
|
|
|
|
|
if (_sysBatteryReplaceLog != null)
|
|
|
|
|
{
|
|
|
|
|
var resuklt = _dal.Insert(_sysBatteryReplaceLog);
|
|
|
|
|
if (resuklt > 0) result = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}
|