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 Common.Enum;
|
|
|
|
|
using Entity.Api.Resp;
|
|
|
|
|
using Entity.DbModel.Station;
|
|
|
|
|
using Entity.Dto.Req;
|
|
|
|
|
using HybirdFrameworkCore.Autofac.Attribute;
|
|
|
|
|
using HybirdFrameworkCore.Entity;
|
|
|
|
|
using Repository.Station;
|
|
|
|
|
using Repository.System;
|
|
|
|
|
using Service.Mgr;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Service.Station
|
|
|
|
|
{
|
|
|
|
|
[Scope("SingleInstance")]
|
|
|
|
|
public class ExStationDayRunResultService : BaseServices<ExchangeStationDayRunResult>
|
|
|
|
|
{
|
|
|
|
|
ExStationDayRunResultRepository _exStationDayRunResultRepository;
|
|
|
|
|
public ExStationDayRunResultService(ExStationDayRunResultRepository dal)
|
|
|
|
|
{
|
|
|
|
|
_exStationDayRunResultRepository = dal;
|
|
|
|
|
BaseDal = dal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 展示换电站日运行统计结果
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public async Task<PageResult<ExchangeStationDayRunResult>> ExStationDaySwapRunRes()
|
|
|
|
|
{
|
|
|
|
|
QueryPageModel queryPageModel = new QueryPageModel();
|
|
|
|
|
return PageResult<ExchangeStationDayRunResult>.ConvertPage(_exStationDayRunResultRepository.QueryIPageByCause(queryPageModel, null));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据id 删除换电站日运行结果
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public async Task<bool> DeleteDaySwapRunRes(int id)
|
|
|
|
|
{
|
|
|
|
|
return await _exStationDayRunResultRepository.DeleteByIdAsync(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据id 批量删除换电站日运行结果
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="ids"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public async Task<bool> BatchDeleteDaySwapRunRes(List<int> ids)
|
|
|
|
|
{
|
|
|
|
|
return await _exStationDayRunResultRepository.DeleteByIdsAsync(ids);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|